Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Using an eVary to count a click incrementally and pass this through Analytics

Avatar

Level 2

Hi all

 

Apologies if my question or descriptions are basic, I am relatively new to the world of Adobe Analytics

 

This is in relation to the mobile core SDK (app tracking).

 

Basically I am trying to use an eVar to count an interaction incrementally and pass this through to Adobe so I can see it in workspace. In this particular instance after a customer performs a search if they click the 'fetch more results' interaction then I would like to count how many times they click this interaction. I have set the eVar to expire after an event fires (the event being if they close the search). So, for instance, if a customer performs a search and then clicks the 'fetch more results' button 5 times and then closes the search (where an event fires and expires the eVar) I expect the counter to return 5 given the eVar has now expired. 

 

Unfortunately, after testing I am only seeing a count of 1.

 

The is the syntax I have provided is

 

if app.interation = page name|fetch more results|button|

AND

trackTask.interaction

AND

click.counter

 

the click.counter is the eVar that should be counting incrementally. 

 

This has been set up in the report suite under the conversion variables as a counter

 

William83_0-1755841573116.png

 

The processing rule has also been created to overwrite value of the eVar if the context data click.counter is set.

 

Am I missing something in the syntax perhaps I need something more like click.counter+1 given I am only getting a value of 1.

 

Thanks all I hope that makes sense!

 

 

 

 

 

 

 

3 Replies

Avatar

Community Advisor

Hi @William83 ,

You have setup the variable with correct type. I'm assuming the variable value is getting cleared in Launch (either by clear vars or data element storage duration) on every interaction.

To track it correctly you'll have to increment the eVar value in Launch by 1 (something like s.eVarX = "+1") on every click, you can send the eVar to AA after every increment or you can send the last value before search close on the search close event itself.

Cheers!

Avatar

Level 2

Hi @Harveer_SinghGi1 

 

Thanks for your prompt reply

 

ok I think I understand - as stated I am new to this.

 

So basically I need to increment the value in Launch which I assume Adobe Launch is the mobile SDK as per the documentation below. 

 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/evar

 

I will ask the developer to try this and mark it solved if it works

 

Thanks again!

Avatar

Level 2

Implementing +1 into the code has worked so thank you @Harveer_SinghGi1 . However now in Workspace I am seeing all of the increments listed. I.e if I click the Fetch more results button 5 times I am also seeing 1,2,3,4 and 5 in Workspace. All I want to see though is the last value which should be 5. Thanks!