Skip to main content

Hi there,

We are on a Hydrogen Shopify store and we are trying to figure out how to send “Viewed Collection” metrics to Klaviyo. I have been sent this documentation from Klaviyo support but I do not see “Viewed Collection” as a metric to be added.

https://developers.klaviyo.com/en/v1-2/docs/integrate-with-a-shopify-hydrogen-store

They recommended I reach out to this forum to see what others are doing that are on a Hydrogen build.

Hi ​@JacklynStory, welcome to the community!

I’m assuming you’re referring to the standard built-in (optional) Shopify integration with Klaviyo’s Viewed Collection event - if so, then you can just replicate the functionality in your Hydrogen collection/category page by passing in the similar data and labelling the event as “Viewed Event”

  • URL
    Collection URL.
  • Activity ID
    Activity ID for the event.
  • CollectionName
    Name of the collection.
  • CollectionID
    ID for the collection.
  • _ip_country_code
    ISO 3166-1 alpha-2 (two-letter) country code (e.g., “US”).
  • _ip_region_code
    ISO 3166-2 region code (e.g. province, state such as “MA”).

Remember, Klaviyo can take any arbitrary event at the client or server side, so depending on your site, you can pass any end user behavioral event you see fit.  For example, we had a client that passed in a “Started Video” and “Completed Video’ event so they can do a “Video Abandoned Follow-up Email.”  You’re on a custom implementation, so you can do whatever events (and data for each event) as you want.