Hi,
I need to add the Google Ads tag on my website.
I already used X Theme’s Google analytics extension to add my Analytics number, it’s working fine.
According to Google, if Google analytics data is already installed on my website, I only have to copy and paste a ‘config command’ with my Ads number, just before the closing HTML tag, but in the extension, I can only add my Analytics number, and not the whole script tag, so I can’t add another google number…
So how can I add my Ads number in the same Tag as Google Analytics’?
Step2, I have to add this code on one of my page (which is an article) in the head tag:
!-- Event snippet 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’: ‘MY GOOGLE NUMBER’, ‘event_callback’: callback }); return false; } /script
Can I add this directly in the editor >> header.php?
Thanks for your help! 