Adwords Remarketing Javascript (Conversion_Async. Js) Is Not Loading

Per the Google Asynchronous AdWords Remarketing tag instructions I add the following snippet inside the head section of my page:

<script type="text/javascript" src="" charset="utf-8"></script>

But I'm unable to call the google_trackConversion function after page load:

<script type="text/javascript">
/* <![CDATA[ */
window.google_trackConversion({
  google_conversion_id: 123456789, 
  google_custom_params: {
    parameter1: 'abc123', 
    parameter2: 29.99
  },
  google_remarketing_only: true
});
//]]>
</script>

However if copy/paste the code from conversion_async.js to the head section it works just fine, indicating the conversion_async.js file is not loading from the googleadservices.com server.

How can I ensure the conversion_async.js file has already been loaded before calling google_trackConversion?

(BTW, as suggested someplace else I toggled AddBlock Plus on/off but that doesn't have any effect)

1

1 Answer

try to set the onload callback which executes window.google_trackConversion() for the script tag <script type="text/javascript" onload="callback()" src="" charset="utf-8"></script>

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest