Skip to main content

Set up Reclaim for Viewed Product in Klaviyo

Updated over 2 weeks ago

Using Reclaim for Product Views

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. This feature can identify product views for known but anonymous customers.

If you're using our custom Shopify Integration app + Customer Events pixel, the Product View script will automatically be installed. For those not using Shopify (including Hydrogen/headless), view the "On your website" section at the bottom.

For non-Shopify stores who wish 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 Viewed Product script. You can find your script in your Retention.com 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.


Set up Viewed Product Reclaim flow

After you have implemented the script on your site and events are flowing, you will create a Viewed Product Reclaim flow in Klaviyo.

Step 1 - Clone Flow

We clone the flow to keep your full automation strategy unchanged while using Reclaim’s events as the trigger.

Clone your existing Browse Abandonment (Viewed Product metric/flow trigger) Flow in Klaviyo. If you don't already have one set up, check out Klaviyo's recommendations for setting this up.

Step 2 - Add Trigger

Change the Trigger metric from Viewed Product to "Viewed Product Reclaim".

If you're starting from scratch, Create a New Flow and choose "Metric" as your flow trigger, then "Viewed Product Reclaim".

Step 3 - Add Flow Filters

These filters ensure that when multiple abandonment events occur in a short time frame, customers enter only the highest-priority Klaviyo flow. This prevents duplicate messaging and keeps your engagement sequence organized and intentional.

If you don't already have them, you should add flow filters to exclude anyone who has:

  • Placed Order zero times since starting this flow
    AND

  • Placed Order zero times in the last 1 days

    AND

  • Has not been in flow in the last 7 days
    AND

  • Received Email zero times in the last 7 days where flow equals (existing viewed product/browse abandonment flow)
    AND

  • Viewed Product zero times in the last 1 hour

If flows are triggered off of Added to Cart, Added to Cart Reclaim, Checkout Started and/or Checkout Started Reclaim, to add these flow filters:

  • Added to Cart zero times since starting this flow

    AND

  • Added to Cart Reclaim zero times since starting this flow

    AND

  • Checkout Started zero times since starting this flow

    AND

  • Checkout Started Reclaim zero times since starting this flow

If an additional vendor is part of your identity stack, make sure to apply the following flow filters:

  • Added to Cart [additional vendor metric] zero times since starting this flow
    AND

  • Checkout Started [additional vendor metric] zero times since starting this flow

Need to update the filters for a Viewed Product flow powered by an additional identity vendor? Expand to learn how.

  • Placed Order zero times since starting this flow
    AND

  • Placed Order zero times in the last 1 day
    AND

  • Has not been in flow in the last 7 days
    AND

  • Added to Cart zero times since starting this flow
    AND

  • Added to Cart Reclaim zero times since starting this flow
    AND

  • Checkout Started zero times since starting this flow
    AND

  • Checkout Started Reclaim zero times since starting this flow
    AND

  • Checkout Started [additional vendor metric] zero times since starting this flow
    AND

  • Viewed Product zero times in the last 1 hour
    AND

  • Viewed Product Reclaim zero times in the last 1 hour
    AND

  • Received email zero times in the last 7 days where flow = [Native Viewed Product flow]
    AND

  • Received email zero times in the last 7 days where flow = [Viewed Product Reclaim flow]


Add SMS to your flow [Optional]

If you want to send an SMS to customers triggering the Viewed Product Reclaim metric, you can add an SMS step to the same flow created above.

Step 1

If your original Viewed Product flow also includes SMS, add the following flow filter:

  • Received SMS zero times in the last 7 days where flow equals (existing viewed product/browse abandonment flow)

Step 2

In your existing Viewed Product Reclaim Flow, add a Conditional split after the first Time delay, to check whether or not there is consent to receive SMS. Drag your first Email Step over to the beginning of the No branch.

Step 3

Add an SMS Step at the start of the Yes branch. Reconnect both branches after the SMS Step, by dragging the Rejoin icon from the No branch to the Yes branch.

Step 4

Configure your SMS content. Short and sweet is best for SMS! Don't forget to set them live!


Dynamic field list

These variables can be used in your email templates to dynamically populate information about your products.

For R! Viewed Product Reclaim events, the table with your product information should be set to Static.

The fields below are based on data sent from our Shopify Integration. Field names and variables may differ when using other eCommerce platforms or a custom setup.

Field Name

Example Value

Dynamic Variable Markup

Currency

USD

{{ event.Currency|default:'' }}

CurrencyPrice

$30

{{ event.CurrencyPrice|default:'' }}

Price

$30

{{ event.Price|default:'' }}

Formatted Price (displays $ only)

$30.00

{% currency_format event.Price %}

ImageURL

{{ event.ImageURL|default:'' }}

Name

Black V-Neck T-Shirt

{{ event.Name|default:'' }}

ProductID

3891613401160

{{ event.ProductID|default:'' }}

URL

{{ event.URL|default:'' }}

Variant

S

{{ event.Variant|default:'' }}

VariantID

29276152856648

{{ event.VariantID|default:'' }}

item_category (when available)

V-Neck Tees

{{ event.item_category|default:'' }}


On your website

If you aren't using our custom Shopify Integration app, 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.

Step 1

Locate your Viewed Product tracking snippet from Klaviyo. If you are using Shopify, this should be located in the liquid template for the product page(s).

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",
     "SKU": "WIZARDOFOZ",
     "Categories": ["Fiction", "Children"],
     "ImageURL": "http://www.example.com/path/to/product/image.png",
     "URL": "http://www.example.com/path/to/product",
     "Brand": "Kids Books",
     "Price": 9.99,
     "CompareAtPrice": 14.99
   };
   _learnq.push(["track", "Viewed Product", item]);
</script>
{% endif %}

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

Step 2

Add the following script to the your existing Viewed Product tracking snippet in Klaviyo:

<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);

Step 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: ##{{ product.id|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);
</script>

Once this script update has been implemented properly, and the event is triggered, you will see this new metric populate in Klaviyo.

Have questions? Message us on chat, or email us at support[at]retention.com!

Did this answer your question?