saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
769 stars 672 forks source link

Add support for Google Analytics #298

Open Pacu2 opened 5 years ago

Pacu2 commented 5 years ago

We should have support for Google Analytics by default. I imagine that as data-driven e-commerce, we would like to track as much as possible, that's including:

This tracking should be easily expandable if, for example, I want to add some custom tracking next to Google Analytics.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

krzysztofwolski commented 4 years ago

Update: Google Tag Manager is bundled with storefront and can be used if GTM_ID is set in environment. It just adds snipped to the webpage, no further integration yet.

I hope for adding enhanced ecomm in upcoming months, the idea is to make it integrated with SDK and and use lots of events. This way adjusting for other analytics will be easy to add.

null-ref-0000 commented 3 years ago

We should add a documentation page on how to setup GTM.

There's a chat on the topic of how to set the variable.

https://spectrum.chat/saleor/general/saleor-google-analytics-and-tag-manager~cc478ae3-afa1-4f6c-926c-05f13fd98262