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

135
Views
Enviar el código gtag del evento a Analytics para la configuración de objetivos

Estoy buscando configurar el seguimiento de conversiones desde un iframe, utilizando el código gtag a continuación (que se inserta en el código iframe), pero ¿cómo configuro el objetivo en Analytics para "recibir" este evento? ¿Necesito agregar event_category, event_action, etc.?

 tag.src = "https://www.googletagmanager.com/gtag/js?id=XXXXXXXXXX"; document.getElementsByTagName("head")[0].appendChild(tag); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("js", new Date()); gtag("event", "booking_init"); gtag("config", "YOUR_TRACKER_CODE"); document.addEventListener("click", function (e) { e.path.forEach(function (pI) { if (pI.className && pI.className.indexOf("ant-select-dropdown-menu-item") != -1) { gtag( "event", pI.firstChild.className, { value: pI.firstChild.title, } ); } if (pI.className && pI.className.indexOf("booking-form-date") != -1) { gtag("event", "booking-form-date"); } if (pI.className && pI.className.indexOf("ant-btn") != -1) { gtag("event", "button", { value: pI.innerText }); } }); });```
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!