Hi @samrat_dsouza
So, short answer is, please speak to your Account Manager to get an enhancement logged for this functionality.
The best thing to request, would be both time based firing, and also ordered firing of tags, i.e. Tag 1 has to of fired before Tag 3 can fire.
1) There are solutions around this, however, most either involve firing mulitple tags that aren't covered by the load rule, or having a lot of controling logic that we don't have in the utag.
If you really want to go this route then I would suggest talking to your AM about getting an update to your utag.js file done. However this wouldn't be offically supported, and you would have to re-apply the changes every time you upgrade your utag.js
2) This is maybe the best of the suggestions. What you can do is have scoped extensions, that will cancel the request and then pass the current object into a setTimeout, calling the tag.
if (a == "view" && b.page_name == "some page name" && typeof b.fire_tags == "undefined") {
(function(_data, _id) {
setTimeout(function() {
utag.view(_data, null, [_id]);
}, 5000);
}(utag.handler.C(b), id));
return false;
}
3) You could have it as a custom tag, you would need to do is use the send function as a trigger for the timeout, calling another contoller method that will do the tag logic for you.
Hope this helps,
Adrian
... View more