Skip to content

Instantly share code, notes, and snippets.

@33sticks
Last active January 18, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 33sticks/ef157d611dee4ed5c82f to your computer and use it in GitHub Desktop.
Save 33sticks/ef157d611dee4ed5c82f to your computer and use it in GitHub Desktop.
A method for dynamically creating a marketing pixel using Adobe DTM.
if(_satellite.getVar('Order Value')){
var orderValue;
var img = new Image();
orderValue = _satellite.getVar('Order Value');
img.src = "https://marketingpixel.example.org/track/conv/?adid=2dngvjx&order_value=" + orderValue ;
document.body.appendChild(img);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment