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

157
Views
Cómo cambiar las variables index.template.html según la propiedad vuex

Estoy haciendo un pago transparente como 'braip', 'kiwify', 'yamp'...

Me gustaría saber cómo cambiar una variable dentro de index.template.html en quasar según la propiedad vuex.

Explicando:

tengo muchas paginas -

mypage/userId/ProductId.

Cada ID de producto tendrá un ID de administrador de etiquetas de Google único. Que debo configurar en la carga de HTML.

este es mi script dentro de index.template.html:

 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'}); var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true; j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);} )(window,document,'script','dataLayer','GTM-XXXXXXX') </script><!-- End Google Tag Manager -->

El "GTM-XXX" se basa en el enrutador que el usuario está visitando.

Me gustaría tomar la etiqueta de Google de mi servidor cuando el usuario carga una página, entonces podría obtener esta información de mis captadores de vuex y pasarla a index.template.html

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!