Skip to main content
All CollectionsIntegrationsOther Integrations
Squarespace Installation Guide
Squarespace Installation Guide
Updated over 11 months ago

In this video, we'll show you where to find your Retention.com snippet script code and how to add it to your Squarespace site.https://www.youtube.com/watch?v=A4FBXK5E4O0&list=PLfqBS6a5IzYCVLjyhXRIR3i7l3j2gmkpe&index=6

Where to find your Retention.com snippet script

1. From your Retention Dashboard, click Code Script. Then, click View Your Script.

2. Check the box next to Collection, and then click Copy Code </>.

How to add collection snippet script

1. Log in to your Squarespace account.2. Click Settings on the left-hand side.

Squarespace Settings

3. Scroll down, and click Advanced.

4. Click Code Injection.

5. Paste the HTML code copied from Retention.com into the Header or Lock Page box. Click Save.

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 collect onboarding.

To inject code into a specific page

1. Log into your Squarespace account.2. Click Pages.

Squarespace Pages

3. Hover your cursor over the page where you want to add the code. Click the Settings icon.

4. A box will appear. Click Advanced and then Page Header Code Injection.

Squarespace Advanced Header

5. Paste the HTML code copied from Retention.com into the Page Header Code Injection box. Click Save.

Note: Code injection is a premium feature only available on Squarespace's Business or Commerce plans.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

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 Snippet in the left navigation and then </> View Script. Then, check the box next to Suppression, and click Copy Code.

2. Follow the steps above to inject the code into a specific page (ex. post-checkout, thank you, and confirmation pages). You would choose one of those pages in Step 3 shown above and continue to Step 5.3. 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 the edit icon next to Collection Rules.

2. Toggle to Yes 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 to Yes 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 Changes.

How to test your script to confirm it's working

Did this answer your question?