In this video, we’ll show you how where to find your Retention.com snippet script code and how to add it to your Wix site.
Where to find your Retention.com collection script
1. From your Retention Dashboard, click Code Script > View script. Next to Collection script, click Copy code.
You’ll see a confirmation in the top right-hand corner telling you the code was copied to your clipboard.
2. Once you’ve added the script to your domain, go back to Code Script > Authorized Domains. Click Edit domains.
3. Paste the domain/URL (where you installed the script) in the text box, and click Save.
It will be highlighted in green with a checkmark if the script is properly installed and you've tested the script—and in gray if the script is not properly added/tested.
How to add collection snippet script
1. Log in to your Wix account.
2. Click Settings from the left-hand Dashboard.
3. Under Advanced Settings, click Tracking & Analytics.
4. Click New Tool > Custom.
5. Paste the collection snippet script code into Paste the code snippet here box. Click Apply.
6. From your Retention.com dashboard, click On next to Script Status to turn your script on. You will have access to this once you collect onboarding.
How to add suppression script
1. Log in to your Wix account.
2. Click Settings from the left-hand Dashboard.
3. Under Advanced Settings, click Tracking & Analytics.
4. Click New Tool > Custom.
5. Paste the suppression snippet script code into Paste the code snippet here box. Then, click the Choose specific page bubble, and select the page where you want to add your suppression script. When you're finished, click Apply.
6. From your Retention.com dashboard, click On next to Script Status to turn your script on. You will have access to this once you collect onboarding.
How to setup collection rules
You can setup rules that are used to automatically trigger a collection event based on the number of page views and/or seconds on a page. This allows you to collect higher-level contacts.
1. To setup the rules, click Code Script in the left-hand navigation and then click Settings.
2. In Collection rules, toggle On to Auto collect the contact after X page views, and type the number of Page Views in the box. For example, if you want a visitor to have 2 page views before the collection script is triggered, type ‘2’ in the box.
Toggle On to Auto collect the contact after X seconds on a single page, and type the number of Seconds in the box. For example, if you want the collection script to wait 10 seconds before it fires, type ’10’ in the box.
3. When you’re finished, click Save.