Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

326
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda