Re-evaluate load rules, tags,... on Anchor Links

Gold Contributor
Gold Contributor

Hello everyone,

On our websites, we have sorting rules for our products.
The filters are evaluated based on the querystring parameters passed in an anchor link.

For instance :
http://estore-uk.pandora.net/charms/
Will have sorting rules based on price between 100 and 150 applied by loading :
http://estore-uk.pandora.net/charms/#pmin=100&pmax=150

This is however not a real reload of the page.

Could we have the tags as if this was a new page (without asking Dev teams step in with either a window.location.reload(true) or include a random value parameter for a forced reload)?

Thanks for the feedback

4 REPLIES 4

Re-evaluate load rules, tags,... on Anchor Links

Tealium Employee

Hi Philippe,

The latest version of the utag loader, allows you reload tags based on both a utag.view({...}) and utag.link({...}) call. So in the eyes on the utag.js file, this would be seen as a new page.

All you will need to do is call, utag.view({...}), to bring in any new tags.

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Re-evaluate load rules, tags,... on Anchor Links

Gold Contributor
Gold Contributor

Hello Adrian,
Thanks for the answer, but that would mean to go back to devs to have the utag.link/view implemented with the complete data layer passed...

I was hoping for a quick method (our code change lifecycle takes about 4-6 weeks minimum)

all the best

Re-evaluate load rules, tags,... on Anchor Links

Tealium Employee

Hi Philippe,

So looking at your site you could use jQuery handlers, set-up in-side TiQ to trigger the the utag.view({...}); with the required data.

You're probably best raising a case with your Account Manager / Solutions Engineer about creating the required selectors / handlers to get this done.

As an example of what you could do, here is a brief JS code snippet:

$('li > a','.refineattributes').on("click", function(){
    utag.view({"href" : this.href});
  });

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Re-evaluate load rules, tags,... on Anchor Links

Gold Contributor
Gold Contributor
Great idea ! thanks !
Public