How to display the dynamic popup in a page through GTM?
This post will explain how to display the dynamic popup in a page through GTM.The assumption is the required JQuery scripts are included as part of the page.
Define the cookie type variable:
This will help us to display the popup for every new browser session(this step is not required if the popup should displayed every time visiting the page)- Click on Variable in left hand side menu.
- Go to user defined variables and select new.
- Select variable configuration as 1st party cookie
- Give cookie name as popUpDisplayed and check url decode cookie option.
- Save the changes and give the name as popUpDisplayed.