Technical Integrations
Server-to-Server (S2S) Conversions
Attribute purchase value securely from Stripe or Shopify servers.
Attribute actual purchase revenue back to AI-engine referrers. Connect your billing systems securely using Stripe and Shopify S2S webhooks.
๐ณ Stripe Integration
Read the _as_click_id cookie from the user's browser, then attach it to Stripe's metadata when creating a Checkout Session or Payment Intent:
const session = await stripe.checkout.sessions.create({
// ...
metadata: {
as_click_id: req.cookies['_as_click_id'] || ''
}
});๐๏ธ Shopify Integration
Shopify integration uses dual-layer tracking. Inject the click ID into cart attributes in your theme templates:
fetch('/cart/update.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
attributes: { 'as_click_id': getCookie('_as_click_id') }
})
});