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

261
Views
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
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!