In this video, I'm going to show you how to add the snippet script to your Unbounce website.
Where to find your Retention.com collection snippet script
1. From your Retention Dashboard, click Code Script > View script. Next to Collection script, click Copy code.
You’ll see a green box 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 verified using the testing tool—and gray if it isn't.
How to add collection snippet script to a landing page
1. From your Unbounce Pages section, click the three dots to the right of the landing page you want to add the script to. Then, click Edit.
2. Click Javascripts at the bottom of the page, and then click Add New Javascript.
3. Paste your Retention.com script in the box, and give it a name at the top. Choose Head from the Placement drop-down list. When you're finished, click Done.
4. From your Retention.com dashboard, click On next to Script Status to turn your script on.
How to add the snippet script to entire domain
1. From your Unbounce dashboard, click Settings > Script Manager. Then, click Add a Script.
2. Choose Custom Script from the drop-down list, and name your script. Then, click Add Script Details.
3. Choose Head for the Placement and All for Included on. Paste the script in the box. Then, choose the domain you want to add the script to on the right-hand side. (If it's not already added, you will need to do that first.) When you're finished, click Save and Publish Script.
4. From your Retention.com dashboard, click On next to Script Status to turn your script on. You will have access to this once you finish the onboarding process.
How to add suppression script
The suppression script can be added to your website on any pages that you do NOT want Retention.com to collect email addresses. Generally speaking, you would put this script on landing pages where the person has already converted, and therefore, you have already collected their email address.
Examples of pages you’d want to add the suppression script to are post-checkout, thank you, and confirmation pages.
1. From your Retention.com Dashboard, click Code Script > View script. Next to Suppression script, click Copy code.
There are two ways to add the suppression script:
1. The first option is to go to Pages from the dashboard and choose the landing page you want to add it to.
2. Click Javascripts at the bottom of the page, and then click Add New Javascript.
3. Paste your Retention.com suppression script in the box, and give it a name at the top. Choose Head from the Placement drop-down list. When you're finished, click Done.
Here's how to add the suppression script to your form's confirmation page:
1. From your Unbounce dashboard, click Settings > Script Manager. Then, click Add a Script.
2. Choose Custom Script from the drop-down list, and name your script. Then, click Add Script Details.
3. Choose Head for the Placement and Form Confirmation Page for Included on. Paste the suppression script in the box. Then, choose the domain you want to add the script to on the right-hand side. (If it's not already added, you will need to do that first.) When you're finished, click Save and Publish Script.
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 > Settings.
2. Next to 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.