Can I pass a pageload variable in a link() call without explicitly passing it in the link call?

carl_dsouza
Bronze Contributor
Bronze Contributor carl_dsouza

I'm passing a variable, say 'language' on the page load data layer. Is there a way to pass this value in an existing link() call by setting it (via an extension or otherwise) within tealiumIQ.

Note that I know that i can pass a single line js like utag_data.locale within the link call, but my question is whether it is possible to pass it in the call without using that line within the actual call

(My usecase is that there are certain variables I would like to pass to Adobe Analytics on link() calls by default, so that I do not have to manually pass into every existing and new link() call that I set up)

 

Thanks for your help!

2 REPLIES 2
Highlighted

Can I pass a pageload variable in a link() call without explicitly passing it in the link call?

Clint
Employee Emeritus
Clint

Hi @carl_dsouza,

There is a Publish Setting called Base Variables which lets you enter a list of data sources for every view and link call. It may be what you're looking for but please note that it is a global setting and not constrained to a specific tag.

Can I pass a pageload variable in a link() call without explicitly passing it in the link call?

carl_dsouza
Bronze Contributor
Bronze Contributor carl_dsouza

Hey @Clint

Thanks - this is extremely useful and definitely one solution.

I'd also like to understand any other way of doing this, as well that you're aware of. For eg, right now, we do not have this method set up, but we still have a couple of variables that are being set by default on all call types. I've not looked too deeply into the set up of the variables but I was wondering if there was any way (for eg, using a custom js extension) that would allow for the same effect as the 'Base Variables'?

 

Thanks,

Carl