Last active
August 29, 2015 14:21
-
-
Save sudodoki/54d3df9732d82e802498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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