Building audiences from collection and search views on Hydrogen
The Hydrogen SDK is installed and in the dashboard I can already see these events flowing:
- product views
- collection views
- search views
- cart views and cart updates
I want an audience of shoppers who searched or browsed a category heavily within the current session, so we can surface a category-specific promo on the home page before they leave. What is the right way to express "heavily this session" from the events I already have
1 answer
You have everything you need already. Collection and search views are part of the auto events the SDK picks up from Shopify's storefront analytics, and they feed both interest signals and session activity on the profile.
For "heavily this session" I would combine two kinds of conditions:
-
Session activity, using the session stats:
session's stats' pageviews > 3 -
Interest, which the category browsing builds up:
user has shown interest in ["headphones"]
Together: an active session AND demonstrated interest in the category. Tune the pageview threshold against your traffic with the audience estimator before going live.
On timing: audiences evaluate per interaction, so as soon as a shopper crosses the threshold mid-session, the next page they open (including the home page) serves the promo. No batch delay, the promo can appear within the same browsing session, which is what you want for a leave-before-buying pattern.