Google Ads code to add in code (Debut theme)

New Member
2 0 0

Hi everyone,

I got a snippet from google to track conversions looking like this:

function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
gtag('event', 'conversion', {
'send_to': 'XXXXXXXXXX',
'event_callback': callback
return false;

I want to use signing up for newsletter as a conversion, but I have no clue where I should paste this piece of code.
According to google I have to paste the snippet between the <head> </head> and call the function "gtag_report_conversion"
at the place where people click submit to the newsletter.

Any help is appreciated! (using debut theme)