Highlighted

How can you edit the URL sent to a vendor when the tag fires?

I'd like to add a parameter at the end of the URL before it's sent to vendor, so the pages on a pop-up can be tracked properly. If there's a best practice to do this, please direct me.
4 REPLIES 4
Highlighted

How can you edit the URL sent to a vendor when the tag fires?

Tealium Employee
Hi Tomomi, This might vary for different tags and use cases. If we assume the tag configuration has a URL mapping available, you can use the "Set Data Values" To JS Code to capture the current URL and parameter to the end of the URL in a new data source. (Remember to scope it to the specific tag vendor) b["dom.url"]+"&end_of_URL_Param" You can then map this new value in the tag configuration. That way the URL will be modified before it is sent to the tag vendor. I also assummed that the page popped up is Tagged with Tealium and will fire your tag vendors tag. If the tag doesn't have mappings for the URL, the template might have to be customized. Please contact your Account Manager so we can help take a closer look at your use case. -Jasmine
Highlighted

How can you edit the URL sent to a vendor when the tag fires?

Hey Jasmine, thanks for that.
Highlighted

How can you edit the URL sent to a vendor when the tag fires?

Employee Emeritus
Tomomi, Typically if a tag vendor wants to capture the URL they have that code configured in the specific vendor library, which Tealium doesn't have control over. However, as Jasmine pointed out, you can append something to the url that is captured by Tealium and map that back to the tag/s. To do this follow the steps Jasmine outlined, but make sure the scope of the extension is "All Tags." This will make the new value available to all tags. So the Extension would be set up like so: Set: To: JS Code -- b["dom.url"]+b.appended_value Then you can map "new_url" to the tags that you want it sent to, in your case it sounds like all tags. You could also do a Join Data Values extension and join url with another variable and use "&" as the delimiter. Select "new_url" as the output variable and you can again use "new_url" to map back to the tags. Hope this helps.
Highlighted

How can you edit the URL sent to a vendor when the tag fires?

Thanks Jared!