Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

How to only include certain hits in a visit?

Avatar

Level 5

Hi,

 

I'm trying to figure out how to only include hits in a visit that ONLY exist for a particular evar and if that visit does anything other than that hit/evar, exclude them from the visit. In other words, I only want to get visits and count the visits that only include the 1 hit. I'm trying a segment like this, but I could just be duplicating the first part of the segment.

 

skatofiabah_0-1730755132753.png


I want to include only visits that have done the first part. I want to exclude every other hit within the visit to get users that only do "a" and nothing else in the visit.

 

Not sure if this is right or if my "does not exist" exclude just double negates and is the same as the first part ("a" exists).

 

Happy to explain further if needed.

 

Thanks!

   

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

So a minor update to @MandyGeorge's suggestion would be:

 

VISIT [

    VISIT container [

        eVar1 equals X

    ]

    AND

   VISIT container (EXCLUDE) [

        eVar1 does not equal X

    ]

]

 

 

Basically, get visits that include "eVar1 having X" and excluding Visits that have "eVar1 any value except for X"

 

 

Now, if you are looking for specific pages, you need to be sure that your eVar isn't set to something like Visit attribution, and retaining the value....

 

if it is, you might need to look specifically at the instance of the eVar:

 

VISIT [

    VISIT container [

        eVar1 (instance) equals X

    ]

    AND

   VISIT container (EXCLUDE) [

        eVar1 does not equal X

    ]

]

 

Jennifer_Dungan_0-1730821208010.png

 

View solution in original post

3 Replies

Avatar

Community Advisor and Adobe Champion

You're on the right track with the exclude, but part of the problem is you have hit level containers, it needs to be visit level for the exclude to apply to the whole visit. 
I just tested out similar logic using product views, just as an example.

The logic I came up with was this, and it appears to be doing what you're suggesting. The desired action is the first hit of the visit, and there is no 2nd hit or beyond. 

MandyGeorge_0-1730767775129.png

 

Avatar

Level 5

Hi @MandyGeorge,

I think your segment would get rid of all visits where they could have viewed the same page/evar again. In mine, I'd like to try to basically get all the visits that only did a particular hit of a page/evar and it can repeat or not repeat in a given visit. Also, I'm still trying to wrap my head around what is wrong with mine. I have applied my overall bucket to the visit level in the segment. I broke down the containers to hit level within the visit to only include the hits to a but exclude all hits not to a and then count those visits. Confused why those lower hit containers need to be at the visit level since I don't want to lose the visits, just the ones where anything but a is removed from visits.

 

Thanks! 

Avatar

Correct answer by
Community Advisor and Adobe Champion

So a minor update to @MandyGeorge's suggestion would be:

 

VISIT [

    VISIT container [

        eVar1 equals X

    ]

    AND

   VISIT container (EXCLUDE) [

        eVar1 does not equal X

    ]

]

 

 

Basically, get visits that include "eVar1 having X" and excluding Visits that have "eVar1 any value except for X"

 

 

Now, if you are looking for specific pages, you need to be sure that your eVar isn't set to something like Visit attribution, and retaining the value....

 

if it is, you might need to look specifically at the instance of the eVar:

 

VISIT [

    VISIT container [

        eVar1 (instance) equals X

    ]

    AND

   VISIT container (EXCLUDE) [

        eVar1 does not equal X

    ]

]

 

Jennifer_Dungan_0-1730821208010.png