Inject the Script into the website footer
In Squarespace, go to Settings > Advanced > Code Injection, and paste the script tags that you copied from UCare in the Footer field.
Next, replace this line of code.
With this line of code, this ensures that the embed code is run each time a new page loads.
Then replace this line of code.
With this line of code
Add the content to your Squarespace pages.
Go to the page you want to add the embed to and Edit the page. Next, click the + in the top right and select the Code option.
In the code textbox, paste the entire <div tag that you copied from UCare and click Apply. For example.
You can now save your Squarespace page; your embed code will load the next time you preview your website.
Embedding multiple scripts
If you want to add multiple embeds to your Squarespace site, then don't add multiple script tags to the Footer. For example, this code:
Instead add just the UCareEmbed code after the last, for example:
UCareEmbed("ucare-embed-610897", "https://mychurch.ucareapp.com", "/events/published", "");
UCareEmbed("ucare-embed-727458", "https://mychurch.ucareapp.com", "/groups/published", "");