Dynamically Passing Value to Third Party Script in Adobe DTM

Some marketing pixels have the necessity to have dynamic values passed in to them but present a challenge when using DTM. This blog posting will show you how to easily pass a value into a image source for 3rd party marketing needs.

The easiest way to do this would be to leverage document.write and embed the logic within the statement. Below is an example of how to do it:

With this in place, your tag will now pass in the hostname plus pathname dynamically so your pixel can leverage that for tracking purposes. The document.write statement makes it easier to get this in place.

Please note that if you are attempting to pass a value dynamically into an iFrame, you won’t be able to (as this is a limitation and hard to work around).

Posted in Adobe Tag Manager, Tag Management Solution