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
bigcommerce_create_script.png

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="https://d3ryumxhbd2uw7.cloudfront.net/bigcommerce/rmBcUtils.min.js"></script>
<script>var _rmData = _rmData || [];
   _rmData.push(['setStoreKey', 'STORE_ID']);
   {{#if customer}}
     _rmData.push(["setCustomer", "{{customer.email}}"]);
   {{/if}}
   {{#if product}}
    var _rmData = _rmData || [];
    _rmData.push(['productView', {
       productId: {{product.id}},
       productCategories: [],
       productCategoriesIds: [],
    }]);
   {{/if}}
</script>
<script>(function(d, t) {
    var g = d.createElement(t),
        s = d.getElementsByTagName(t)[0];
    g.src = 'https://d3ryumxhbd2uw7.cloudfront.net/webtracking/track.js';
    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 - https://app.remarkety.com/account/storesettings#tab_api_keys
1.png

5. Save :) 

You're all set!

You can monitor your recent website tracking events on Remarkety here: https://app.remarkety.com/account/storesettings#tab_webtracking

If you have any additional questions, please feel free to contact support@remarkety.com. 

Have more questions? Submit a request

0 Comments

Article is closed for comments.