Using an eVary to count a click incrementally and pass this through Analytics | Community
Skip to main content
Level 2
August 22, 2025
Question

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

  • August 22, 2025
  • 1 reply
  • 2171 views

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

 

 

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!

 

 

 

 

 

 

 

1 reply

Harveer_SinghGi1
Community Advisor
Community Advisor
August 22, 2025

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!

William83Author
Level 2
August 23, 2025

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!