vercel / commerce

Next.js Commerce
https://demo.vercel.store
MIT License
11.21k stars 4.14k forks source link

Implementation of Shopify analytics #1317

Open oybek-daniyarov opened 6 months ago

oybek-daniyarov commented 6 months ago

Hello,

I've been working on integrating Shopify analytics into Next.js applications and have developed a solution that might benefit the community.

I noticed there isn't currently a robust solution for this, and many developers seem to be looking for guidance in this area. This gap often makes us choose Remix over Next.js for integrating with Shopify.

To help address this gap, I've prepared a step-by-step guide https://karvedigital.com/insights/integrating-shopify-analytics-into-your-next-js-custom-storefront and a working example, which is currently hosted in my fork of the repository. https://github.com/oybek-daniyarov/vercel-commerce-with-shopify-analytics

Live example https://vercel-commerce-with-shopify-analytics.vercel.app/ Loom video https://www.loom.com/share/0e4d68c038ee4d989ea00ecf381a2a67?sid=e05a18a9-729f-4414-8a32-74cf95010356

I'm reaching out to ask if you would be interested in this contribution. If so, would it be acceptable for me to create a new branch and open a pull request for this implementation? I understand the example depends on @shopify/hydrogen-react, and I'm open to any adjustments or discussions on how to best integrate this solution into the main repository.

leerob commented 6 months ago

This is awesome! Yeah, we'd love this contribution. Could you also share photos of the Shopify analytics in the dashboard working after this change? Thank you.

leonnardovv commented 1 month ago

Any updates on this?

oybek-daniyarov commented 1 month ago

@leonnardovv there is PR with working example here https://github.com/vercel/commerce/pull/1318