Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.

eVar Expiration on Next Page Load/Click

Avatar

Level 4

11/17/16

I capture the pageName in an eVar on each page load. The expiration is on the hit. That gives me pageNames in a variety of additional reporting.

 

However I'd like to associate the eVar pageName (and other page attributes stored in eVars such as Channel) with custom events captured on clicks that occur on the page. With the expiration occurring on the page load, the eVar completely misses them.

 

I could use the Minute expiration, but this just isn't precise enough. If people stay on a page longer then I would miss events.  Letting it expire at the end of the visit could really confuse things in the reporting even with overwriting.

 

It would work better if the tool had an option to expire on the Next Page Load. That would capture all potential events without worry.

 

As an additional option, Next Hit could be helpful as well.

3 Comments

Avatar

Level 9

12/11/16

A couple of years ago there used to be a "page view" expiration, distinct from "hit", which worked for the scenario you mentioned above.   But then for some reason Adobe decided to get rid of that expiration option for reasons unclear to anybody. 

 

It would be nice if they brought it back, but for now, my workaround is to include my pageName eVar in every s.tl call, too. 

 

At the end of doPlugins I have code like this:

 

 

function s_doPlugins(s) { // .. other stuff /* every hit vars */ if (s.linkType) { s.trackEveryCall = [ 'eVarX' // pageName dupe // etc.. ]; for (var n=0,v=s.trackEveryCall.length;n