Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Hi @subhaD,
You can add a count for button clicks using custom code, profile scripts, and audience builder.
Here are the steps:
1) Add adobe.target.trackEvent to the close button you want a count for. Give it a unique name like "myCloseButton" or something like that.
2) Test that you see the delivery call firing when you click the close button using your browser's network tab.
3) Once you know the trackEvent is firing, navigate to the profile scripts section in the Adobe Target UI and click on "+ Create Script."
4) Enter the code that will count the close button click as follows:
if (mbox.name == 'myCloseButton') {
return (user.get('clickedMyCloseButton') | 0) + 1;
}
5) Now, you can use the visitor profile within an audience. Once built, you can use it within a target activity.
I hope that helps.
Matthew Ravlich | ACG Digital | albertacg.com
Hi @subhaD,
You can add a count for button clicks using custom code, profile scripts, and audience builder.
Here are the steps:
1) Add adobe.target.trackEvent to the close button you want a count for. Give it a unique name like "myCloseButton" or something like that.
2) Test that you see the delivery call firing when you click the close button using your browser's network tab.
3) Once you know the trackEvent is firing, navigate to the profile scripts section in the Adobe Target UI and click on "+ Create Script."
4) Enter the code that will count the close button click as follows:
if (mbox.name == 'myCloseButton') {
return (user.get('clickedMyCloseButton') | 0) + 1;
}
5) Now, you can use the visitor profile within an audience. Once built, you can use it within a target activity.
I hope that helps.
Matthew Ravlich | ACG Digital | albertacg.com
Hi @subhaD,
I agree with @Matthew_Ravlich_ACG - it was also saved in the user profile (possibly also with a max limit) and build an Audience from it accordingly.
Thanks @Matthew_Ravlich_ACG , its working.
Views
Like
Replies