Answer the question
In order to leave comments, you need to log in
Why is Google adWords not converting?
Help with connecting the Google adWords conversion script. It is not possible to use the script offered by adWords in the project, since most of my events take place on Ajax.
I tried to implement sending conversions on the advice of Google Develops https://developers.google.com/adwords-remarketing-... but the conversions do not go through. Or they pass, but not regularly. Conversions without values. On click
Implementation code (typescript):
namespace Goals {
class adWords extends BaseElement{
public events:string[] = [ 'goals#registered', 'goals#checkout', 'goals#one-click', 'goals#go-to-cart' ];
/* <![CDATA[ */
onRegisteredEvent() {
adWords.goal( 'Id6XCJrFq2MQ7ITdyQM' );
}
onOneClickEvent() {
adWords.goal( 'p-JqCKCEm2MQ7ITdyQM' );
}
onCheckoutEvent() {
adWords.goal( 'rqiOCMfLq2MQ7ITdyQM' );
}
onGoToCartEvent() {
adWords.goal( 'tertCL_zmmMQ7ITdyQM' );
}
/* ]]> */
static goal( conversion_label:string ) {
try {
/* <![CDATA[ */
google_trackConversion({
google_conversion_id: 959922796,
google_conversion_label: conversion_label,
google_conversion_language : "en",
google_conversion_color: "ffffff",
google_conversion_format : "3",
google_remarketing_only: false
});
/* ]]> */
} catch ( e ) {
}
}
}
Core.addElement( new adWords() );
}
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