- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
03-13-2015 03:47 AM - last edited on 12-29-2015 03:40 PM by kathleen_jo
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
Solved! Go to Solution.
03-13-2015 03:52 AM - last edited on 12-29-2015 03:41 PM by kathleen_jo
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
03-13-2015 04:05 AM - last edited on 12-29-2015 03:41 PM by kathleen_jo
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
03-13-2015 04:43 AM - last edited on 12-29-2015 03:42 PM by kathleen_jo
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
Copyright All Rights Reserved © 2008-2023