Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
Views
How to replace page path variable of the google tag manager using @nuxtjs/gtm?

I have a route called create-event in my nuxtJs project and in 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.

Here is a screenshot

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.

Here is another screenshot

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!