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

Profile Script - Frequency setup for each experience

Avatar

Level 2

Hi,

 

My requirement is to show each experience only for 3 times. Once user seen 1st experience as per the order show 2nd experience and so on.

I understand that we can use below script for frequency but this would work based on mbox name but looking option at the experience level Any thoughts?

mbox_location1 - experiencename_1

mbox_location1 - experiencename_2

 

var frequency = user.get('frequency') || 0; if (mbox.name == 'mbox_location1') { return frequency + 1; }

 

we are recording experience name value in Adobe Analytics but as per my understanding we can't use data layer value in profile script.

1 Reply

Avatar

Level 1

Hi MA1985_CG, 

 

Was you able to solve this anyhow? I'm having the same 'issue' here, trying to figure out how to do.