Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

330
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda