Google Adwords
tareq1988 opened this issue · 0 comments
tareq1988 commented
Track google adwords conversion events.
Site Tag:
<!-- Global site tag (gtag.js) - Google AdWords: 123456789 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'AW-123456789');
</script>
Purchase Tag:
gtag('event', 'conversion', {
'send_to': 'AW-123456789/Ii0jCKTM320Qwo_m5QM',
'value': 49.0,
'currency': 'USD',
'transaction_id': ''
});
New Lead/Signup:
gtag('event', 'conversion', {'send_to': 'AW-1018791874/PrBtCPv6-HoQwo_m5QM'});