I have generated utag.data._prodId with the value
I know that is the value saved to the utag.data object because I can access it from the console in my browser.
However, when I add it to my media forge tag it is escaping the value as so:
How do I prevent this.
Thanks for your help,
Since the data is passed as part of the URL string we need to run the value through the encodeURIComponent() function which you can read about here: http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp.
If you need to remove this then you'll need to manually update the template and change line 19 from:
You just need to be careful with this because if any value is being passed with URL specific characters like "?" or "&" then it can possible alter or worse break the URL being called.
You can only do this as long as you have the user permissions to Manage Templates so hopefully you can access this...
- Click your email address in the upper-right corner of TealiumIQ.
- Choose "Manage Templates".
- When the Template Config modal appears, choose "MediaFORGE from the drop-down.
- On line 19 change from:
- Click "Save Profile Template".
- Click "Close" once the save modal disappears.
- Save/Publish the change.
If you are uncomfortable making this change, please reach out to your Account Manager with the account and profile where this change is needed and they will be able to complete this for you or loop in a Solutions Engineer.