Highlighted

deploy a tag with styles based on url

Bronze Contributor
Bronze Contributor

hello! I want to deploy a custom tag to a couple of sub directories on one of our sites. the issue is though that the style for a div on the page will be different based on the url. so on one page the div affected by the tag will look one way than it will look on a different page (same functionality though). what is the best way to do that?

3 REPLIES 3
Highlighted

deploy a tag with styles based on url

Tealium Expert
Tealium Expert

Hi @paul_elwood. Not sure I follow here, the custom tag you plan is for changing the styles but in a different way depending on subdirectory?

Highlighted

deploy a tag with styles based on url

Tealium Employee

Hi @paul_elwood

 

My suggestion would be to use something like the Lookup Table Extension.

This will allow you to change the URL for the style file, based on the current page URL.

 

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Highlighted

deploy a tag with styles based on url

Bronze Contributor
Bronze Contributor

clever. thanks. sounds like it would work. we would have to have 3 or 4 urls for style sheets but that's manageable certainly.