1.1.47 add new gtag
This commit is contained in:
@@ -47,6 +47,33 @@
|
||||
|
||||
gtag('config', 'G-2WW2PTG5BM');
|
||||
</script>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16654215692">
|
||||
</script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'AW-16654215692');
|
||||
</script>
|
||||
|
||||
<!-- Event snippet for Sign-up 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-16654215692/tPyZCPyJgcYZEIzUrIU-',
|
||||
'event_callback': callback
|
||||
});
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
{# </header>#}
|
||||
{#<div class="line_f_header"></div>#}
|
||||
|
||||
Reference in New Issue
Block a user