Since the standard AdWords Remarketing Tag does not support asynchronous loading, you need to use the asynchronous version when implementing cookie consent on the tag.
If your existing tags look like this:
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 123456789;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
Then change it to this asynchronous version (remember to replace the value of google_conversion_id to your own id):
<script type="text/plain" data-cookieconsent="marketing">
const src = "//www.googleadservices.com/pagead/conversion_async.js",
id = {{your Google conversion id}};
Cookiebot.getScript(src, true, function () {
window.google_trackConversion({
google_conversion_id: id,
google_custom_params: window.google_tag_params,
google_remarketing_only: true
});
});
</script>
Comments
0 comments
Please sign in to leave a comment.