Connect the pop-up module
If the module was not connected earlier (for example, when you opened your account) - contact your account manager to connect it. To see if the pop-up functionality is available to you, open the main menu and select the “Pop-ups” section (pop-up creation and report viewing should be available).
Installing the script
On all pages of your site before the closing tag </body> install the script.
<script type="text/javascript"> var script = document.createElement('script'); script.type = 'text/javascript'; script.src = '//cdn.enkod.ru/script/enpop.min.js'; script.async = true; var first = document.getElementsByTagName('script')[0]; first.parentNode.insertBefore(script, first); var enKodBox = window.enKodBox = window.enKodBox || {}; var ekEvents = window.ekEvents || []; enKodBox['token'] = 'SYSTEM_NAME'; </script>
The system name of the account is set when creating an account in the platform and is not equal to the sending domain or website address. You can get the system name from your account manager.
Setting the page opening method
Set the pageOpen method (opening any page on your site) on all pages of your site for the “Page Visits” condition to work.
The method is used to segment contacts based on their visit history on the site. Together with the ekEvents.push('subscribe') method, it allows you to track page visits of specific users and segment them based on this data.
ekEvents.push('pageOpen')