Skip to main content

Manually enable web behavior tracking for your Shopify store

Harness your customers' and prospects' activity on your website.

Gareth Burroughes avatar
Written by Gareth Burroughes
Updated today

When you install the Dotdigital Tag on your Shopify store, you can optionally enable web behavior tracking. We store web behavior tracking data in an Insight data collection called Webinsights. This data captures your customers' activity on your website after clicking through from one of your campaigns or browsing your store from a known Shopify customer account.

Browsing activity is captured, stored and then made available for use in creating segments, powering programs, and sending abandoned cart campaigns.


Script installation

There are two methods you can use to install web behavior tracking on your Shopify store:

  • Automatic installation (Recommended)
    Using our installation wizard, the Dotdigital Tag is automatically installed on your store, and you just need to map a program in your store settings.

  • Manual installation
    This is done by configuring the Dotdigital Tag and applying the code snippet manually to your store.


Automatic installation

Mapping a program automatically installs code on your connected Shopify store to enable Web behavior tracking, abandoned cart, and abandoned browse functionality.

Map an abandoned cart program

  1. In Dotdigital go to Connect > Shopify and find the heading Abandoned cart.

  2. Expand the Enrol abandoned carts to drop-down menu and choose an abandoned cart program from the list.
    The program does not have to be active.

  3. Select SAVE.

That’s it!

If you want to map an abandoned browse program, you can do this through the Dotdigital Tag settings.


Manual installation

To manually install web behavior tracking on your Shopify store:

1. Configure the Dotdigital Tag

You must ensure you enable web behavior tracking when you set up your Tag.

2. Add the Tag to your site

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

  2. Expand the Actions drop-down menu, then select Edit code.

  3. Under Layout, select the file theme.liquid.

  4. Before the </head> tag, paste the Dotdigital Tag generated for you in your Dotdigital account.

  5. Select Save.


Check it's working

Once you've installed the Dotdigital Tag on your Shopify store, it can take up to one hour before you start seeing web tracking data reflected in Dotdigital.

To check you're tracking data and associating it to a contact correctly:

  1. Send yourself an email campaign that includes a link to your store.
    To learn how, check out the Email basics section of the Help Centre. This must be a live send, test sends do not track browsing sessions.

  2. Open the link from the email, and browse a few pages of your store.

  3. Wait one hour, then, in Dotdigital, go to Audience > Contacts.

  4. Find and select the contact you sent the campaign to.

  5. On their Single customer view, select the Insight data tab, expand the collection type drop-down menu and select Webinsights. You can select an individual record from the left side to view it.

Did this answer your question?