- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
01-25-2018 06:16 AM
Hello All,
I have an event listener which happens on click and sends data to adobe analytics.
However when the click occurs, the adobe call contains all the page data from the previous call.
Is there anyway to clear all the data before the link call occurs?
btw the link call occurs via a utag.track("link",{key:value},null,[1]);
Thanks
01-25-2018 09:53 AM
Please review the Adobe configs, specifically to check if the "Run clearVars" is set to "Yes"? I believe by default it's set to "No" so try changing to "Yes" and see if that resolves your issue.
Cheers,
-Dan
01-26-2018 12:56 AM - last edited on 01-26-2018 07:11 AM by kathleen_jo
Hi @dan_george,
thanks for getting back to me.
Run clearVars is set to "Yes". that is why i am having so much trouble understanding why it is not working.
Any other idea?
Thanks
01-26-2018 01:02 AM - last edited on 01-26-2018 06:43 AM by kathleen_jo
If the data isn't being persisted in the Adobe tag, might it be being persisted in the utag.data object, @vinceie5?
The easiest way to test is to load the page in question, let the Page Load event fire, then **bleep** into the console and type:
window.utag.data = {};
Then test the click you're looking at, and see if it now sends the data you were hoping for. If that results in the desired outcome, then you can clean up utag.data in an After Tags extension either by wiping it completely or simply removing any keys that shouldn't persist beyond a single event.
01-26-2018 02:29 PM - last edited on 01-29-2018 11:21 AM by kathleen_jo
I'd also like to add, @vinceie5 and @UnknownJ, that there are certain data parameters that will persist by Tealium between events on the same page.
For example, if the UDO declared on a page is:
utag_data = { "site_region": "en_US", "site_currency": "USD", "page_name": "Tealium Ecommerce Demo", "page_type": "cms page" }
The data available in the UDO is (i'm using ... to show similar variables and to keep short):
"data": { "site_region": "en_US", "site_currency": "USD", "page_name": "Tealium Ecommerce Demo", "page_type": "cms page", "cp.utag_main_v_id": "0161348bbcb10060097472ac9f4004079002007100c48",
"cp.utag_main_dc_event": "3", ... "meta.description": "Default Description", ... "dom.referrer": "", ... "ut.domain": "tealiumecommerce.com", ... "tealium_event": "view", ... "js_page.PERSISTENT": 1, "_ccity": "", ... "audiencestream": "true", "gua_cid": "GA1.2.2012181512.1517005029", "gua_cid_as": "2012181512.1517005029", "adwords_pagetype": "home" }
Then if I do a simple utag.link call:
utag.link({ "test": "true" })
Then the data available on that event in the UDO is:
"data": { "test": "true", "cp.utag_main_v_id": "0161348bbcb10060097472ac9f4004079002007100c48",
"cp.utag_main_dc_event": "4", ... "meta.description": "Default Description", ... "dom.referrer": "", ... "ut.domain": "tealiumecommerce.com", ... "tealium_event": "link", ... "js_page.PERSISTENT": 1, "_ccity": "", ... "audiencestream": "true", "gua_cid": "GA1.2.2012181512.1517005029", "gua_cid_as": "2012181512.1517005029" }
What I'm showing here is that even though in the utag.link call I'm simply passing {"test":"true"} Tealium will still process and build the other elements of the data layer, such as determining which number event this is for the session.
Therefore I'm curious if you are passing through a Tealium parameter, or if it's a custom UDO variable. More details might help point this issue in the right direction.
Cheers,
-Dan
Copyright All Rights Reserved © 2008-2023