Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Passing back data element to third party tag

Avatar

Level 1

Hi there,

If I needed to pass back a data element to a third party tag, would I simply just use %dataelementname% ?

Would this be correct for the usage case?

EXAMPLE:
Data Element name: dl.purchaseID
Third party tag: <script src="https://smrtpxl.advertising.com/S?spid=215&ORD=%dl.purchaseID%" type="text/javascript"></script>

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Emily,

To pass back  a data element to a third party tag, you can use use the below snippet of code in the Third party/ Javascript tab. 

<script id="id1" src="" type="text/javascript"></script> <script type="text/javascript"> (function(){ var str= "https://smrtpxl.advertising.com/S?spid=215&ORD="; var val=_satellite.getVar('dl.purchaseID'); str.concat(val); document.getElementById("id1").src= str; }());</script>

Please do let us know if you have any questions or queries

Thanks & Regards

Parit Mittal

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Emily,

To pass back  a data element to a third party tag, you can use use the below snippet of code in the Third party/ Javascript tab. 

<script id="id1" src="" type="text/javascript"></script> <script type="text/javascript"> (function(){ var str= "https://smrtpxl.advertising.com/S?spid=215&ORD="; var val=_satellite.getVar('dl.purchaseID'); str.concat(val); document.getElementById("id1").src= str; }());</script>

Please do let us know if you have any questions or queries

Thanks & Regards

Parit Mittal