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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

First instance of an eVar - pages

annaurban
Level 1
Level 1

Hello everyone,

I am currently trying to prepare a report where I would be able to see the pages where first instance of an eVar occurred (so basically on which pages an eVar was set and assigned to a user). I tried segmentation with "then" clauses but I was not able to get rid of the next pages seen after this eVar was set.

Any ideas?

0 Replies
ursboller
Community Advisor
Community Advisor

you need a „hit“ segment with condition „[evar] instances“ is „greater than or equal„ to „1“

where [evar] ist the name of the evar you are looking for

this way you get only the hit‘s where the evar is set

annaurban
Level 1
Level 1

Hello urs.boller, thanks for the reply!

Unfortunately, this segment shows not only the pages where the first instance of an eVar happened, also the pages where it was set already (on previous pages). Furthermore, there is no situation where a hit can have more than 1 instance of a specific eVar

Do you think there is a way to dig these pages?

ursboller
Community Advisor
Community Advisor

annaurban​ do you mean you only want the first instances of the evar ever? means if there is a second evar instance in the same visit, it should not count/include the second hit?

Gigazelle
Employee
Employee

The segment urs.boller​ mentioned should work, except use 'equals 1' instead of 'greater than or equal to 1'.

annaurban
Level 1
Level 1

Hello Gigazelle​, this segment does not work because it shows every hit where the eVar existed, not necessarily the first instance.

Changing the condition from 'greater...' to 'equals 1' unfortunately does not work - there is no hit where we can have more than 1 instance of the same eVar.

ursboller
Community Advisor
Community Advisor

ok, this can get a bit tricky - never tried it out (but it is on my todo list so very interested if it works...)

create the following 4 segments:

1) his segment where evarX-Instance equals 1

2) hit segment where evarX-Instance equals 1 and hit-depth equals 1

3) visit segment (before sequence) where „evarX-Instance does not equals 1“ then „evarX-Instance equals 1)

4) hit segment where (1) and {container: (2) or (3)}

explanation:

it shows you all hits where evar is set (1) and either it is the first hit (2) or within a sequence of hits until the instance occurs (3)

maybe this can be done a way easier, possibly by just 1 segment by combining the containers directly...

let me know if it works!

kind regards

Urs

marion33678522
Level 8
Level 8

Should'nt this be related to the expiration and allocation definitions of the variable ?

Cheers !

RichZebra
Level 2
Level 2

I was going to try with a Min Count function. Any tips?