Reduce frequency of experience templates | Community
Skip to main content
JyotiSharmaV
Community Advisor
Community Advisor
February 7, 2024
Solved

Reduce frequency of experience templates

  • February 7, 2024
  • 1 reply
  • 1346 views

I have been wondering if there is a way we can reduce the frequency of pop-up Lightbox template appearance to user https://github.com/Adobe-Marketing-Cloud/target-experience-templates/blob/master/lightbox/template.html

 

I am considering that it should be shown to repeated users just once or twice or if a user has seen this pop up then it should not appear again. Any thoughts? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

Yes you could achieve this with Impression Capping - this article explains it in detail but essentially the steps are:
i) Add a custom code modification to your Experience
adobe.target.trackEvent({'mbox':'activity1234'})

ii) Create a profile script
if (mbox.name == 'activity1234') { return (user.get('1234') | 0) + 1;}

iii) Create an Audience with a rule based on that profile script
e.g. if value is less than 2

You can of course give the mbox any name you want (other than target-global-mbox), activity1234 is just an example

1 reply

alexbishop
Adobe Employee
alexbishopAdobe EmployeeAccepted solution
Adobe Employee
February 8, 2024

Yes you could achieve this with Impression Capping - this article explains it in detail but essentially the steps are:
i) Add a custom code modification to your Experience
adobe.target.trackEvent({'mbox':'activity1234'})

ii) Create a profile script
if (mbox.name == 'activity1234') { return (user.get('1234') | 0) + 1;}

iii) Create an Audience with a rule based on that profile script
e.g. if value is less than 2

You can of course give the mbox any name you want (other than target-global-mbox), activity1234 is just an example

JyotiSharmaV
Community Advisor
Community Advisor
February 8, 2024

Hey @alexbishop this was very helpful. I have one question here.

Once I am done with creating audience (Screenshot 1), Do I need to attach this Target Audience (Pop Up Display Restrict) to my experience audience as below?

 

         ABC Page Visitor - Adobe Target Audience

         AND

         Pop Up Display Restrict

 

The reason why I am asking this is because, In my experience, I already have a specific audience group that I am pulling via Analytics segment (Screenshot 2).

Screenshot 1

 

Screenshot 2

 

alexbishop
Adobe Employee
Adobe Employee
February 12, 2024

Yes, that's correct; within the Targeting step of activity setup, you can choose the "Combine Audiences" option, which will let you combine your Analytics audience & the Impressions audience into one new combined audience