Highlighted

Transfering a page type into the description-parameter of an adition tag results in multiple tag loads?

Bronze Contributor
Bronze Contributor

I want to use the description-parameter (desc) of an adition tag to transfer a page type. I use a look-up table to define the page type dependent on the pathname. My problem is, that the tag then loads multiple times â one time for each character of the description. I suppose that it has to do something with the variable types, which is an array in case of the description. The output variable in the look-up table is interpreted as multiple items. By now, we only use one character as a substitute for a page type. Nevertheless, I would prefer to write out the page type. Has anybody an idea how I can solve this issue?

3 REPLIES 3
Highlighted

Transfering a page type into the description-parameter of an adition tag results in multiple tag loads?

Tealium Employee
It sounds like, by using the lookup table, you're passing a string to something that expects an array, so it's treating each character as an individual array element. You have a couple of options - You can convert the string to an array by using a set data extension after the lookup table, for a new variable, and set it to jscode containing " [b.string] " (where string is the name of the string-variable that you want to send) Or you can change the lookup table output type to array - however you need to make sure that the output array name exists before the lookup table runs, so you may need a set data extension before the lookup table to create the empty array.
Highlighted

Transfering a page type into the description-parameter of an adition tag results in multiple tag loads?

Bronze Contributor
Bronze Contributor
Hi Steve I decided to go for your first idea and use a set data extention to change the string into an array. And it works fine. Thanks for your help! Kind regards Maike
Highlighted

Transfering a page type into the description-parameter of an adition tag results in multiple tag loads?

Tealium Employee
Ah, good news. Thanks for letting me know!