All Collections
Set up Reclaim for Viewed Products
Set up Reclaim for Viewed Products
Updated over a week ago

Reclaim can identify product views for both unknown, non-logged in users (Grow contacts) and known, non-logged in customers (emails in your suppression list).

Note: We must enable this feature for you. If you’ve not already spoken with someone on our team, please ensure you request that we enable this for you.

To use this feature, you must first ensure that you’re using the most recent version of our script on your website. The base script must fire before the Product Views script. You can find your script in your account under Code Script > View Script.

Click here for a link to all our tutorials on how to add the script to your site, in case you need a refresher.

On your website

There are two options for updating your Viewed Product events for Reclaim if you aren’t using our custom Shopify Integration app:

  1. RECOMMENDED: You can create a new Viewed Product event name that will be unique to Reclaim. For example, “Viewed Product – Reclaim.” You will create a cloned/unique flow for these events.

  2. You can update your existing Viewed Product events to include those coming from Reclaim and add them to all other Viewed Product events. If you do this you’ll need to ensure you add a filter to your existing Viewed Product flow to prevent duplicates.

How to add the script

1. Locate your Viewed Product tracking snippet (if one is already installed). The Viewed Product tracking snippet that you need to locate looks like this:

_learnq.push(['track', 'Viewed Product', item]);

Here’s an example of the full snippet with an item’s image URL, price, etc:

{% if product %}
<script type="text/javascript">
   var _learnq = _learnq || [];
   var item = {
     "ProductName": "The Wonderful Wizard of Oz",
     "ProductID": "1111",
     "Categories": ["Fiction", "Children"],
     "ImageURL": "",
     "URL": "",
     "Brand": "Kids Books",
     "Price": 9.99,
     "CompareAtPrice": 14.99
   _learnq.push(["track", "Viewed Product", item]);
{% endif %}

Note: If you do not have a Viewed Product tracking snippet installed, skip to Step 3 below.

2. Add the following script to the your existing Viewed Product tracking snippet:

<script>geq.event('Viewed Product Reclaim', item);</script>

So the whole thing should look like this (we’ve not included the additional details for price, image URL, etc here):

_learnq.push(['track', 'Viewed Product', item]);
geq.event('Viewed Product Reclaim', item);

3. If you do not have an existing Viewed Product tracking script, add this to your theme:

<script type="text/javascript">
    var item = {
        Name: ##{{ product.title|json }},
        ProductID: ##{{|json }},
        ImageURL: "https:##{{ product.featured_image.src|img_url:'grande' }}",
        URL: "##{{ shop.secure_url }}##{{ product.url }}",
        Brand: ##{{ product.vendor|json }},
        Price: ##{{ product.price|money|json }},
        CompareAtPrice: ##{{ product.compare_at_price_max|money|json }}
geq.event('Viewed Product Reclaim', item);

Once this script update has been implemented properly and you've set up your flows, and the event is triggered, you will see this new metric populate in your ESP.

Did this answer your question?