← Back to Developers

Browser Conversions

Call this on your thank-you page or after a form succeeds. Always set a type, and send a stable order_id so a refresh is not counted twice. Leave value out when there is no amount. To stop a form such as a newsletter sign-up from counting as a lead, add data-sourcetrack-ignore-conversion="true" to it. For sales recorded by your server, see Offline conversions.

Full reference with parameters and examples: app.sourcetrack.ai/developers/conversions

window.sourcetrack.conversion({
  type: 'purchase',
  order_id: 'ORD-98765',
  value: 99.00,
  currency: 'USD'
});
  • Google Ads
  • Meta
  • LinkedIn
  • Microsoft Ads
  • TikTok
  • Stripe
  • Shopify
  • HubSpot
  • GA4
  • Search Console
  • WooCommerce
  • Webflow
  • WordPress
  • Typeform
  • Calendly
  • Intercom
  • Zapier
Works with