Answer the question
In order to leave comments, you need to log in
How to set up google ads to accept conversions from a website?
Good afternoon. There is a site. It has several buttons for communication:
<a href="#" style="font-size:22px;" onclick="ym(63284002,'reachGoal','tg'); return gtag_report_conversion('tg://resolve?domain=UserName');"><img src="/assets/basestyle/Tg.jpg"" class="img-fluid" style="max-width:32px;"/></a>
<a href="tel:+375299841006" style="font-size:22px;" onclick="ym(63284002,'reachGoal','phone'); return gtag_report_conversion1('tel:88888888888888');"><img src="/assets/basestyle/phone.jpg" class="img-fluid" style="max-width:32px;"/></a>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-88888888"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-88888888');
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'tgconversion', {
'send_to': 'AW-88888888/kUT8CM_Vm9EBEJWaiOQC',
'event_callback': callback
});
return false;
}
function gtag_report_conversion1(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'phoneclick', {
'send_to': 'AW-88888888/ATmPCIWCqdEBEJWaiOQC',
'event_callback': callback
});
return false;
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question