Skip to main content

How do I install the Albacross tracking code on a Shopify site?

Install Albacross tracking script for Shopify

Written by Oskar Johnson Hägglund

1. Copy your tracking code

In Albacross, open the profile menu at the bottom left, click Settings, then Website Tracking, and copy the code on the Manual tab. It already has your Client ID in it. See Where can I get the tracking code?

2. Add the code to your Shopify theme

  1. In your Shopify admin, go to Online Store > Themes.

  2. On your current theme, click the ... button and choose Edit code.

  3. Under Layout, open theme.liquid.

  4. Paste the tracking code just before the closing </head> tag.

  5. Click Save.

This tracks your store pages. Shopify doesn't run theme code on checkout pages, so visits to checkout aren't tracked.

Or use Google Tag Manager

If your store already loads Google Tag Manager, you can add the code there instead. See the Google Tag Manager part of How to install Albacross tracking code. Don't install it both ways.

3. Check that it works

Open your store, view the page source and look for serve.albacross.com/track.js. It can take up to 24 hours before the first companies show up in Albacross.

Did this answer your question?