Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTM plugin does not properly set event name #363

Open
ccook10-chwy opened this issue Feb 18, 2023 · 0 comments
Open

GTM plugin does not properly set event name #363

ccook10-chwy opened this issue Feb 18, 2023 · 0 comments

Comments

@ccook10-chwy
Copy link

The google-tag-manager plugin is not adding event names to any events (track, page) . I don't know if this is a bug or a support request, since no one else has reported this yet. I am using it with Next.js 13. I have not been unable to debug why just yet.

All dataLayer pushes for a track('My Event', payload) call have the event: "gtm.click" instead of event: "My Event"

I am using the package versions below.

    "@analytics/google-tag-manager": "^0.5.3",
    "analytics": "^0.8.1"

My first thought was, maybe this is by design? No problem, I'll override the name with a custom plugin. That had no effect though, and after looking at the code it's clear that this should not be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant