Skip to content

How to use GTM with router support? #259

Closed
@hjelmdal

Description

@hjelmdal

📚 Is your documentation request related to a problem?

I tried following the Nuxt Scripts guide for implementing GTM - compared to other Nuxt / Vue packages, I don't have any options to hook into the router, for firing events on route changes out of the box - Am I missing something here, or how do I make GTM pickup route changes out of the box?

🔍 Where should you find it?

https://scripts.nuxt.com/scripts/tracking/google-tag-manager

ℹ️ Additional context

I tried using the Tag assistant to verify the firing of the Tag, and can confirm that it is only recording events on hard refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions