Skip to main content

Set up Reclaim for Category Views in Klaviyo

Updated over 2 weeks ago


This feature can identify category views for known but anonymous shoppers.

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.

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 Category Views 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 Category Reclaim flow

Once our custom Shopify Integration app is set up and we have enabled this feature, it's time to create or clone your Viewed Category Flow in Klaviyo.

Step 1 - Clone Flow

Clone your existing Viewed Category Flow. If you don’t already have one set up, create a new Flow from Scratch.

Step 2 - Add Trigger

Change the Trigger metric from Viewed Category (or whatever name you have for the existing metric) to “Viewed Category Reclaim.”

If you’re starting from scratch, Create a New Flow and choose “Metric” as your flow trigger, then Viewed Category 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 day
    AND

  • Has not been in flow in the last 7 days

    AND

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

  • Viewed Category 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:

  • Viewed Product zero times since starting this flow
    AND

  • Viewed Product Reclaim zero times since starting this flow
    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

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

  • Viewed Product [additional vendor metric] zero times since starting this flow
    AND

  • 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 filters for your original flow powered by your Viewed Category trigger? Expand to learn how.

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

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

  • Placed Order zero times since starting this flow

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:

  • Viewed Product zero times since starting this flow
    AND

  • Viewed Product Reclaim zero times since starting this flow
    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

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

  • Viewed Product [additional vendor metric] zero times since starting this flow
    AND

  • 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 Category flow powered by an additional identity vendor trigger? Expand to learn how.

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

  • Viewed Product zero times since starting this flow
    AND

  • Viewed Product Reclaim zero times since starting this flow
    AND

  • Viewed Product [additional vendor metric] zero times since starting this flow
    AND

  • Added to Cart zero times since starting this flow
    AND

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

  • Added to Cart [additional vendor metric] 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

  • Placed Order zero times since starting this flow
    AND

  • Placed Order zero times in the last 1 day
    AND

  • Viewed Category zero times in the last 1 hour
    AND

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

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

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


Add SMS to your flow [Optional]

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

Step 1

If your original Category View flow also includes SMS, add the following flow filter:

  • Received SMS zero times in the last 7 days where $flow equals (existing viewed category flow)

Step 2

In your existing Viewed Category 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.

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

Name

Crew Neck Tees

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

URL

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


On your website

There are two options for updating your Viewed Category events for Reclaim:

  1. RECOMMENDED, our instructions will use this method. You can create a new Category event name that will be unique to Reclaim. For example, “Viewed Category Reclaim.” You will create a cloned/unique flow for these events.

  2. You can update your existing Viewed Category events to include those coming from Reclaim and add them to all other Viewed Category events. If you do this you’ll need to ensure you add a filter to your existing Viewed Category flow to prevent duplicates. Jump to “Flow Filter for Viewed Category Flow” for instructions.

1. Locate your Category tracking snippet from Klaviyo. If you are using Shopify, this should be located in the liquid template for the category page(s). The Viewed Category tracking snippet that you need to locate should look something like this:

_learnq.push(['track', 'Viewed Category', categoryItem]);

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

Here’s an example of what a full snippet with category data might look like if there's an existing Viewed Category Tracking Script:

<script type="text/javascript">
   var _learnq = _learnq || [];
   var categoryInfo = {
     "CategoryName": "Puzzles",
     "CategoryURL": "http://www.example.com/category",
   };
   _learnq.push(["track", "Viewed Category", categoryItem]);
</script>

2. Add the following script to the your existing Viewed Category tracking snippet in Klaviyo:

<script>geq.event("Viewed Category Reclaim', categoryItem);</script>

So the whole thing should look like this if you have an existing Viewed Category tracking script (we’ve not included the additional details for price, image URL, etc here):

_learnq.push(['track', 'Viewed Category', categoryItem]);
geq.event('Viewed Category Reclaim', categoryItem);

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

<script type="text/javascript">
    var categoryItem= {
       //Assuming you're using Shopify - otherwise, you need to get the name of the category
        name: ##{{ collection.title|json }},
        //URL of the current page
        url: location.href
    };
geq.event('Viewed Category Reclaim', categoryItem);
</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?