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

120
Views
Seguimiento del tráfico enviado a los clientes

Tengo un nuevo sitio web de directorio con Google Analytics 4.

Estoy tratando de registrar eventos de clic en el sitio web cuando alguien hace clic en un enlace que lo lleva al sitio web externo. Esto es para comprender e informar sobre la cantidad de tráfico que estoy enviando a estos clientes.

Desafortunadamente, no puedo ver el evento que se está grabando. Intenté instalar y usar Google Analytics Debugger pero no veo ningún resultado nuevo en mi Consola.

Aquí está el código que estoy usando

 <head> <script async src="https://www.googletagmanager.com/gtag/js?id=G-HIDDENTAG"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-HIDDENTAG'); </script> <script> $( document ).ready(function(event) { $( ".link_to_provider" ).click(function(event) { event.preventDefault(); setTimeout(visitProvider, 1000); var visited = false; function visitProvider() { if (!visited) { visited = true; window.open('https://www.example.com'); } } // Sends the event to Google Analytics and // resubmits the form once the hit is done. ga('send', { hitType: 'event', eventCategory: 'provider', eventAction: 'website_visit', eventLabel: 'CID-10', hitCallback: visitProvider }); }); }); </script> </head> <body> .... <a href="https://www.example.com" rel="nofollow" class="link_to_provider"><button class="btn btn-primary px-4 mb-1 mt-0">Visit Website</button></a> ..... </body>

Gracias por la ayuda.

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!