Track Ads conversions without relying on fragile client-side attribution. Refer Labs remains the source of truth for referrals.
Install via GTM whenever possible so you can reuse a consistent container across websites.
GTM guide: /gtm
Ads tracking helps marketing optimization; Refer Labs attribution requires server-side discount code redemption capture.
Authoritative conversion capture
POST https://referlabs.com.au/api/discount-codes/redeem
Headers:
Content-Type: application/json
x-pepf-discount-secret: <YOUR_SECRET>
Body:
{
"discountCode": "CODE_USED_AT_CHECKOUT",
"orderReference": "ORDER-12345",
"amount": "199.00",
"metadata": { "platform": "google_ads" }
}If your conversion happens in a system without native webhooks, post via Zapier or Make.