Skip to content

Some more questions about Hydrogen | Persistence and Analytics #1347

Answered by wizardlyhel
JOKeRiino asked this question in Help
Discussion options

You must be logged in to vote

For now, all Shopify specific analytic instrumentation is on an opted-in bias. You, as a developer, can lazy include the <ShopifyAnalytics /> (working PR #1325) and the <PerformanceMetrics /> behind a cookie consent interaction.

At the moment, Hydrogen cannot integrate with Shopify app store's apps unless those vendors have their own api to make it happen.

I have not use a react-cookie-consent package before but from the looks of it, it would need to be a client component. Once the user accepts the consent, a refresh would need to be triggered so that the analytics are setup. Let me know what kind of feature you would need to make this happen. I think we might need a way to hold event pub…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JOKeRiino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants