Installing Web Tracking in BigCommerce Stencil Theme Editor

If you are using BigCommerce's Stencil new theme framework you can follow these steps in order to install Remarkety's website tracking codes.

  1. Login to the store's back end.
  2. Go to "Storefront Design" > "Design Options"
  3. Open the "Scripts" tab.
  4. Add the following code to the Footer scripts:
    <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>
  5.  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
  6. Save

You're all set! You can now open and create your awesome Browser Abandonment campaign. 

Monitor your recent website tracking events on Remarkety -
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.