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

256
Visualizações
gtag_report_conversion is not reporting on click function

I have put this piece of code together and placed it in the header on my wordpress site. I am using Divi theme. The class gtag-phone is on my CTA.

The problem I am having is that google is not verifying the tag and not reporting any conversions. I am not sure if it is wordpress not accepting the code or if I wrote something wrong?

A second set of eyes would be very appreciated. Thank you!

<script>
function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  };
  gtag('event', 'conversion', {
      'send_to': 'AW-xxxxxxxxxx/xxxxxxxxxx',
      'event_callback': callback
  });
  return false;
}
//Button Conversion Function    
jQuery(document).ready(function($){
    $('.gtag-phone').on('click', function(e){
        gtag_report_conversion($(this).attr('tel:1234567890'));
    })
}); 
</script>```
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