Hi there,
Our customer had observed an issue with not finding some of their campaigns inside reaching Reports > Campaigns > Tracking Code > Tracking Code report. Once I looked into it, I had observed two things:
1) When I am loading campaign url into the browser (either latest Chrome or Firefox) - I see (inside Adobe Site Catalyst Debugger chrome extention / Firefox bookmark) Campaign variable being sent to SC, and event25 too - as expected. I can also see this right away reflected inside the report "Reports > Campaigns > Tracking Code > Tracking Code ". Which makes me think that the issue is browser related. Can you please tell, if there is a known issue around "getValOnce()" and / or "getQueryParam()" and / or "apl()" that takes place when certain browser is used? The customer in question has version H.25.1. of Site Catalyst script.
2) According to this article (sadly, I did not find official API reference via googling for it), getValOnce() should set campaign tracking once per session: http://webanalyticsland.com/sitecatalyst-plugins/getvalonce . However, when I am running tests, for me (in both Firefox and Chrome) the campaign variable and event25 is sent every time I reload page with update url (every time I submit new cmpid value to the url), e.g. multiple times during the same session. Can you please explain why this is happening? TrackingCode variable has following settings for this customer: allocation - most recent (last), expire after - week, reset - do not reset. The code that sets campaign variable is as follows below:
if (!omt_s.campaign) { omt_s.campaign = omt_s.getQueryParam('cmpid'); omt_s.campaign = omt_s.getValOnce(omt_s.campaign, 'ecmpid', 0); if (omt_s.campaign) omt_s.events = omt_s.apl(omt_s.events, 'event25', ',', 1); }
Thank you very much for your help.
Warm regards
Zoryana