Integrating Contextual into a Squarespace site¶
This setup assumes that you have already setup your App Key on the Dashboard.
Once you get into the code injection page, click on the footer section, then copy and paste the contextual scripts.
Do not enter the script into the Header section.
Once you are on the settings page select the web section then copy the script and initialisation code into the footer section of the Code Injection field you created in Step 1.
Once this has been done, it should look similar to the image below
This needs to be done on any page that you want to show contextual content.
Check that you have either set USER_ID or removed it from the initialisation script.
USER_ID is the name you want to give to your install-id. This name is up to you. For more info visit the Tagging documentation. When you call register method, USER_ID is optional, you can set it later by sending user_id tag, it is string tag.
Save the changes that you have made to your site and then go to your Squarespace site and reload the page.
Video of the Integration steps¶
(The video is old but the information is still relevant)¶
If you have any issues integrating Contextual into your Squarespace site please visit the troubleshooting guide here