Profile Script Issue | Fire once per site visit

Avatar

Avatar
Validate 1
Level 1
GregTWC
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
GregTWC
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
GregTWC
Level 1

26-02-2020

Hi, 

Using a custom profile script, that reads when a visitor has visited a specific URL It will then create & return a score. 

By default the score is 0, if the visitor lands on the page, the score would then increment by 1, Then by using audience rules I can then say after a visitor has seen the experience more than 2 times don't show the experience. 

 

I want the score to be cleared when a users session has finished, so when they return to the site their score defaults back to 0.

As this is based off the Visitor Profile, I would have to wait until the Visitor Profile is refreshed (14 days by default) for the score to default back to 0.

If I was to use user.isNewSession  and each time its true, it then re-sets the profile score back to 0.

 

Does this mean after 30 mins of the Visitor not being active it will re-set my score?

Or is their an easier way to have the Profile Scripts fire once by individual Visit, not by the Visitors Profile?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

24 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile
LordOfTheRings
Level 4

27-02-2020

Hi @GregTWC 
If a user returns to the site without clearing cache and cookies , then target would treat the session as same and will put that user in the profile script (if user satisfies the condition) . 

A target session  ends only after 30 minutes of inactivity (silence) or after clearing cache and cookies.
If you want to show the experience on the first visit of a session ,  you can achieve this by writing the profile script that returns the count. Then you can use this profile script in the target activity audience as Visitor Profile (user.yourProfileScriptName > equals > static value > 1)

 

This will ensure the target delivery only on the first visit of the session. This will deliver the experience even after 30 minutes of the activity or after clearing cache and cookies.

 

Hope that helps you. 

 

Answers (0)