Archived topic
i need to implement 2 google codes: leads + phone tracking
6 replies · Started by liorsade8 on August 18, 2022
Hello,
i need to implement 2 google codes, and i dont know how / where... because what i did dont work
1. Event Code Google for leads on forms, entire site.
2. Event Calls Google phone, entire site.
the site:
https://www.frontbranding.com
this is for the leads:
<!-- Event snippet for ליד באתר conversion page -->
<script>
gtag('event', 'conversion', {'send_to': 'AW-10939205655/UXj1CK3Xj8oDEJeQnOAo'});
</script>
this is for the calls:
<!-- Event snippet for שיחות מהאתר conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-10939205655/TSLdCPnWkMoDEJeQnOAo',
'event_callback': callback
});
return false;
}
</script>
i thought it's easy, just paste this codes on the hooks, and in entire site...
but it's not working.
please help.
thanks
Hello there,
Are you hooking them at the right location?
It says here (https://developers.google.com/tag-platform/gtagjs/install) that you need to add it to wp_head.
Can you confirm if you’ve chosen the correct hook?
yes.
they are in head
but it's not working
hey guys
any news please?
Just checked your site and the code is there:
https://www.screencast.com/t/si3VgOq2reN
checking
thanks
No problem :)