- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
11-15-2019 07:19 AM - edited 11-15-2019 07:28 AM
Hi all,
I have a Tag and I would like to fire when I setup an specific value. I've created an UDO variable and my Tag looks like:
My expectation is this code should make it fire:
document.getElementById('my-btn').addEventListener('click', function(){ utag_data.fire_type = 'user_interaction'; });
But it doesn't. Instead of that, I have to call < utag.view() > to make it work:
document.getElementById('my-btn').addEventListener('click', function(){ utag_data.fire_type = 'user_interaction'; utag.view({}, function() { utag.o['my-profile'].sender['1766'].send('view', utag_data); sessionStorage.setItem(idTagType, '1'); }, ['1766']); });
P.S.: I know, should not be necessary to call < profile.sender.send() > but it's not being automatically called. Also, I have to pass < utag_data > as parameter for getting the new value updated in called tag (I use that value into the tag).
Thanks!
11-15-2019 07:30 AM - edited 11-15-2019 07:33 AM
I also tried this configuration:
Copyright All Rights Reserved © 2008-2023