Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Counting the first event in a visit

Avatar

Level 2

On my site, I'm tracking play button clicks for a video. It counts whenever someone hits the play button. So if someone plays a video, pauses, and plays the video again, the play event counts 2x. How do I make it so that in my Adobe workspace, it only shows the one click count (regardless of how many times a user clicked the play button)?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Level 5

Hi @alchan Use getValOnce plug-in provided by Adobe Analytics.It ensures that a value is only captured once per defined scope (e.g., visit, session, or page load).

Avatar

Community Advisor and Adobe Champion

But if you have two or more different videos on the same page, this will result in only counting the first video played, which will then be undercounting... 

Avatar

Community Advisor and Adobe Champion

Hi @alchan ,

If you don't have access to changing the tag configuration through tag manager as mentioned by @KumarRishii , you can create a segment with visit container that records the play click and look at visits metric. You can try segment variations per your need and see if that works?

 

Best,

Isha

Avatar

Community Advisor and Adobe Champion

I believe you should be able to create a segment to exclude "the additional plays" but this is complicated.... since you don't want to exclude all additional plays throughout the entire visit (i.e. if the user views 5 videos, you want to make sure that you have at least 5 plays shown, that you aren't accidentally removing too many hits).

 

think this would work, but please test it thoroughly:

 

HIT [

    Video Play Event exists

    AND

    HIT container (EXCLUDE) [

        VISIT container [

            Video Play Event exists

            THEN Within 1 Page View(s)

            Video Play Event exists

       ]

    ]

]

 

 

Basically, this should return all "Video Play Events" excluding the Video Play Hits that have the sequence of Video Play followed by a Video Play (on the same page view)

 

However, if you have a page that has multiple videos, this will exclude too much

 

If this were something I would need, I would actually create a new event specifically built with logic to only trigger an event on the initial play of each video, and then not trigger again...  this would be the safest option...