Skip to content

Instantly share code, notes, and snippets.

@sudodoki
Last active August 29, 2015 14:21
Show Gist options
  • Save sudodoki/54d3df9732d82e802498 to your computer and use it in GitHub Desktop.
Save sudodoki/54d3df9732d82e802498 to your computer and use it in GitHub Desktop.
var google_conversion_id = 1234567890;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
window.onload = function(){
// save old document.write
var dw = document.write;
// change document.write temporary
document.write = function(node){
$("body").append(node);
}
$.getScript("http://www.googleadservices.com/pagead/conversion.js", function() {
// replace the temp document.write with the original version
setTimeout(function() {
document.write = dw;
}, 100);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment