Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

how to track custom eVar/prop

Avatar

Avatar
Validate 1
Level 1
samuelel1823078
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
samuelel1823078
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
samuelel1823078
Level 1

01-01-2021

Hi,

I have integrated the appMeasurement.js and now my site is subject to tracking for all the default properties (visits, pagename and so on). Now I want to track a custom variable so i have added the following code inside the onclick function of a button:

s.eVar10="hello"; s.prop10="1";s.t(); The desired is to see a graph that reports the number of times the button has been clicked.

Unfortunately, I'm not able to find any graph for this purpose, if someone can help me it would be really appreciated.

Maybe the custom variables must be manually defined inside the workspace to start the tracking?

 

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 2
amgup
Level 2

Likes

10 likes

Total Posts

39 posts

Correct Reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 2
amgup
Level 2

Likes

10 likes

Total Posts

39 posts

Correct Reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
amgup
Level 2

01-01-2021

Hello @samuelel1823078 

If you want to track/count the number of times the button was clicked than you can set up the counter event on the click of the button.
eg- s.events="event1";


Than you can check the event1 in the workspace project.

You can check the below link for more information related to its implementation:-

https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/events/events-overvi...

 

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
yuhuisg
MVP

Likes

154 likes

Total Posts

489 posts

Correct Reply

91 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
yuhuisg
MVP

Likes

154 likes

Total Posts

489 posts

Correct Reply

91 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
yuhuisg
MVP

02-01-2021

With button clicks, you normally want to track them with Custom Links using the s.tl() function.

See "Make link tracking calls within a custom function" at https://experienceleague.adobe.com/docs/analytics/implementation/vars/functions/tl-method.html#examp....