Which storefront events does the Hydrogen SDK track out of the box?
hey folks, coming from React Native so web analytics plumbing is newish to me. We are setting up Croct on a Hydrogen store and I want to build a few audiences (repeat cart abandoners, search users, category browsers).
Before I write any tracking code, what does the SDK give me for free? Is there a list of events it captures automatically once installed, and are those enough to build audience conditions on, or should I plan on instrumenting things myself from day one
1 answer
You get a decent baseline without writing anything. The auto events come from Shopify's storefront analytics, so once the SDK is installed it captures product views, cart views, cart updates, and collection and search views on its own.
Those events feed signals you can use directly in audience conditions, no extra developer work. So all three of your examples are covered by the automatic set: cart abandoners come from cart activity, search users from search views, and category browsers from collection views.
Where you will eventually write code is anything Shopify's storefront analytics does not know about, like a wishlist add or a quiz completion. Those custom events go through the SDK with a manual track call. My suggestion is to launch with the auto events, build your first audiences on them, and only instrument custom events once a condition you want cannot be expressed with what is already flowing.