You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a route called create-event in my nuxtjs project and on this page, I have an event form that has some steps. I want to track those steps in the google tag manager. If I move from one route to another when clicking on the next button that time it's working. For example, when I am clicking on the create button that time it changed route from http://localhost:4444/create-event-dynamic-url to http://localhost:4444/create-event-dynamic-url/step-musician-type that time google tag manager tracked it correctly. But when I want to do the same thing without route changing using this.$gtm.push({ 'event': 'nuxtRoute', 'pagePath': process.env.SERVER_BASE_URL + this.$nuxt.$route.path+'/step-musician-type' }) that time it's not working. Now actually, I want to replace the original nuxt route path in the google tag manager using $gtm.push({}). Is it possible? Can anyone help me with it?
I have a route called
create-event
in my nuxtjs project and on this page, I have an event form that has some steps. I want to track those steps in the google tag manager. If I move from one route to another when clicking on the next button that time it's working. For example, when I am clicking on the create button that time it changed route fromhttp://localhost:4444/create-event-dynamic-url
tohttp://localhost:4444/create-event-dynamic-url/step-musician-type
that time google tag manager tracked it correctly. But when I want to do the same thing without route changing usingthis.$gtm.push({ 'event': 'nuxtRoute', 'pagePath': process.env.SERVER_BASE_URL + this.$nuxt.$route.path+'/step-musician-type' })
that time it's not working. Now actually, I want to replace the original nuxt route path in the google tag manager using$gtm.push({}).
Is it possible? Can anyone help me with it?I have also asked the same question in the stack overflow and here is the ( link https://stackoverflow.com/questions/70212271/how-to-replace-page-path-variable-of-the-google-tag-manager-using-nuxtjs-gtm)
The text was updated successfully, but these errors were encountered: