Add Google Adwords tracking pixel

To insert Google Adwords tracking in the Celery confirmation page, add the following script in the custom confirmation scripts. Please do not use the default script provided by Google Adwords.

Remember to replace CONVERSION_ID and CONVERSION_LABEL with your own attributes.
<script type="text/javascript"> 

function getScript(source, callback) {
  var script = document.createElement('script');
  var prior = document.getElementsByTagName('script')[0];
  script.async = 1;
  prior.parentNode.insertBefore(script, prior);

  script.onload = script.onreadystatechange = function( _, isAbort ) {
      if(isAbort || !script.readyState || /loaded|complete/.test(script.readyState) ) {
          script.onload = script.onreadystatechange = null;
          script = undefined;

          if(!isAbort) { if(callback) callback(); }
      }
  };

  script.src = source;
}
getScript('https://www.googleadservices.com/pagead/conversion_async.js', function() {
window.google_trackConversion({
  google_conversion_id: CONVERSION_ID, // Put your conversion ID here
  google_conversion_language: "en",
  google_conversion_format: "3",
  google_conversion_color: "ffffff",
  google_conversion_label: "CONVERSION_LABEL", // Put your conversion label here
  google_remarketing_only: false
})
});

</script>

Feedback and Knowledge Base