V jake chvili se posila Google Tag manager?
<script async src="https://www.googletagmanager.com/gtag/js?id=abc"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'abc');
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'abc/efg',
'event_callback': callback
});
return false;
}
gtag_report_conversion();
</script>
Bude neco takoveho fungovat?