nextjs-google-analytics icon indicating copy to clipboard operation
nextjs-google-analytics copied to clipboard

[Feature Request] GTM support

Open snelsi opened this issue 2 years ago • 4 comments

This library uses GTAG to load analytics. Is it possible to add optional support for GTM as well?

More info: https://measureschool.com/google-tag-manager-vs-global-site-tag

snelsi avatar May 19 '22 10:05 snelsi

Related official Next.js example: https://github.com/vercel/next.js/tree/canary/examples/with-google-tag-manager

snelsi avatar May 20 '22 05:05 snelsi

I found this npm package and thought the same thing.

It looks like someone has already made a fork of this with GTM, however, it hasn't been updated in 5 months. https://github.com/EmilianoGarciaLopez/nextjs-google-analytics-GTM

I'd be happy to work on making the feature for this repo, as I think it would be valuable for a lot of people.

JPMoles avatar Aug 14 '22 06:08 JPMoles

I'd be happy to work on making the feature for this repo, as I think it would be valuable for a lot of people.

@JPMoles That would be great! Thanks for the initiative. Let me know if I can help in any way and feel free to open a PR when it's ready.

MauricioRobayo avatar Aug 16 '22 02:08 MauricioRobayo

Is the issue still active?

kuttim avatar Jun 26 '23 15:06 kuttim