Sometimes we would like to run a variation change just on the first visit. This article allows to only show a change created on the Visual Editor only for the first visit.
Create your experience and changes:
Once you created your experience, open the visual editor.
Create your Changes in the Visual Editor
Insert the JS libraries on your variation.
Hover over the variation name where you want to execute your changes only once. Select the "Custom JS" menu item. Enter the following code and assign the right number to the variable numberOfViews.
See the Pen Show Experience Certain Number of Times - Custom JS Section by Convert.com (@gcrewe) on CodePen.
Modify your variation code in the "Code Editor "area.
Access your "Code Editor", by selecting the corresponding menu item of your variation menu.
Edit your variation code
Edit your variation code integrating with the following code:
See the Pen Show Experience Certain Number of Times - Code Editor by Convert.com (@gcrewe) on CodePen.
Activate your experience
Check that is running
You are done!