If you’d like to track purchases made in your Shopify store as conversions in Unbounce, this is the doc for you!
This doc will explain how to use Unbounce’s External Conversion Tracking script to track purchases as conversions in Unbounce.
What You'll Need:
- A Shopify account with an active subscription,
- Access to Admin Settings in Shopify (Staff or Store Owner permissions who have access to updating your online store), and
- An Unbounce landing page with the same root domain as your Shopify domain.
- Your Unbounce page(s) and your Order Confirmation page on Shopify must share the same root domain. Here's how to add a domain in Shopify:
Setting up External Conversion Tracking in Shopify
- Log in to your Shopify account.
- Navigate to the Settings page.
- From your Settings page, navigate to the Customer events tab.
- Click "Add custom pixel", give the pixel a name - for example "Unbounce external tracking" - then click the "Add custom pixel" button to create the pixel.
- You will now see the configuration panel for your pixel. In the "Customer privacy" section disclose and decide what settings you want for "Permission" and "Data sale".
- In the "Code" section paste the following External Conversion Tracking script:
On line 1, replace ‘PAGE-DOMAIN-ON-UNBOUNCE’ with your custom root domain. For example, if your landing page lives on ‘my.website.com/about-us’, update the script to ‘my.website.com’.Note: The script above is set to register a conversion when checkout completes, but there are other checkout lifecycle events that can be used. See https://shopify.dev/docs/api/web-pixels-api/standard-events. - Click Save at the top of the Pixel's configuration panel.
- Click Connect on the bar at the the top right of the pixel's configuration panel in order to make your pixel live.
You're all set!! Once users complete checkout on a page in Shopify, Unbounce will track the conversion.
How it works
This script will look for the presence of a specific conversion tracking cookie (ubvt).
Once the user completed checkout on your Shopify store, the tracking beacon will make a request back to Unbounce’s servers. The result is that the conversion count in the corresponding Page Overview will increment by 1.
Check out our documentation for more information on External Conversion Tracking.
Note:
For example, if your Unbounce landing page URL is my.landingpage.io, then your Shopify confirmation page must exist on the same root domain, such as www.landingpage.io. The root domains for the Shopify Order Confirmation page and the Unbounce page must match in order for this external conversion tracking script to work.