BUILDER

Resources

Home

Forum

Github

Login

Signup

This page was made in Builder!

Tracking Conversions

Tracking conversions with Builder is easy, we just need to add a couple lines of code to your website.

Javascript

React


// Requires @builder.io/sdk version >= 1.1.10
import { builder } from '@builder.io/sdk'

// For conversions without a specified amount
builder.trackConversion();

// OR to specify an amount, e.g. a dollar value for the conversion,
// for instance for an ecommerce order
builder.trackConversion(99.99);

And that's it!

Builder will associate these conversions with content and clicks by session IDs, so just be sure this is called in the same browser environment as the impressions and click events are sent (aka this is currently a browser only API, it won't work as expected if used, for instance, server side)

Also note that if you are a Shopify store and have installed our Shopify app the above code is not needed, it is installed automatically

Up next

Dynamic URLs

Visit the Builder Forum

Was this article helpful?