Hello,
I have searched forum with similar problem, but couldn’t find a way how to deal with it. So I have 2 codes to enter in my website. One is that i have to insert between <head> tags:
<!– Global site tag (gtag.js) – Google AdWords: 876082425 –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=AW-876082425″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘AW-876082425’);
</script>
And another is this one:
<!– Event snippet for Mygtuko paspaudimas 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-876082425/tnZBCLqwjYMBEPnp36ED’,
‘event_callback’: callback
});
return false;
}
</script>
Where should I put each of these?