Register Now: Use Visual Dev + AI to Ship 10x Faster on July 24

Announcing Visual Copilot - Figma to production in half the time

Builder.io logo
Contact Sales
Contact Sales

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

With conversion tracking, you can measure and analyze important user actions or events, such as form submissions, purchases, or any other desired conversions.

Tracking conversions with Builder only requires adding a few lines of code to your app, as in the examples below (choose your framework):

When you use cross-domain conversion tracking, such as when your checkout page is on a different domain than your store, you need to associate the session on the store with the conversion on the checkout page.

Pass the sessionId as a query param on the checkout URL as in the following example:

import { builder } from '@builder.io/react';

/**
* append the session to the URL to associate conversions
*/
const Cart = () => {
  ...
   const checkoutUrl = useCheckoutUrl() +
   `&builder.overrideSessionId=${builder.sessionId}`
  ...
}

Builder tracks these interactions using impression data. Ensure that this function is invoked in the same browser environment as the impressions and click events are dispatched. Since this API is designed for browser usage, it may not function as intended if used server-side.

Note that if you are a Shopify store and have installed Builder's Shopify app, the above code is not needed, as it is installed automatically.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Newsletter

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy