INSTALLING THE BROWSE ACTIVITY CODE

On product pages only, place this script block. The SKU of the current product should be passed into this function.

  1. Replace "SKU1" shown below with the SKU of the product the customer is on.
<script type="text/javascript"> 
     (function(d) { if (document.addEventListener)     document.addEventListener('ltkAsyncListener', d); else {e = document.documentElement;     e.ltkAsyncProperty = 0; e.attachEvent('onpropertychange', function (e) { if     (e.propertyName == 'ltkAsyncProperty'){d();}});}})(function() {
         
        /********** Begin     Custom Code **********/

            _ltk.Activity.AddProductBrowse('SKU1');    

        /********** End Custom Code **********/
         
     });
</script>

TESTING THE BROWSE ACTIVITY CODE

  1. Open your website in your browser Open up your browser’s network tab. (In most browsers press F12 and then click on the console tab.)
  2. Set the filter to ‘listrak.’

4. Navigate to a page that is not a product page.
5. You should see a request fire that begins with your Merchant ID.
6. Click the Merchant ID request.
7. Click the Headers Tab.
8. You should see an activity type of Product Browse and a key value that matches the page you are on.

Did this answer your question?