Installing Web Tracking in BigCommerce for Cart and Browse abandonment


This article provides detailed instructions on how to set up website tracking for Cart and Browse abandonment campaigns. 

Adding Remarkety's tracking code to the "Footer Scripts" 

1. Login to the store's back end.

2. Go to Storefront > Script Manager > Create Script

3. Give the script a descriptive name ("Remarkety Utils" for example).

4. Select to following settings:

  • Location on page: Footer
  • Select pages where script will be added: All pages
  • Script type: Script

3. Add the following code to the script content:

<script type="text/javascript" src=""></script>
<script>var _rmData = _rmData || [];
   _rmData.push(['setStoreKey', 'STORE_ID']);
   {{#if customer}}
     _rmData.push(["setCustomer", "{{}}"]);
   {{#if product}}
    var _rmData = _rmData || [];
    _rmData.push(['productView', {
       productId: {{}},
       brand: "{{}}",
       productCategories: [],
       productCategoriesIds: [],
canPurchase: {{{JSONstringify product.can_purchase}}}
<script>(function(d, t) {
    var g = d.createElement(t),
        s = d.getElementsByTagName(t)[0];
    g.src = '';
    s.parentNode.insertBefore(g, s);
}(document, 'script'));</script>

4.  Make sure to replace STORE_ID with the store id from the API Key page on Remarkety -

5. Save :) 

You're all set!

You can monitor your recent website tracking events on Remarkety here:

If you have any additional questions, please feel free to contact 

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.