Recommended installation instructions for sites using Squarespace
If you are using Squarespace and editing template code isn’t your cup of tea, we recommend following the instructions in this article.
Account setup:
If you already have a SmartVideo account, scroll down to What happens after I install?
If you do NOT, create your SmartVideo account. Once registered, you’ll be given a unique key to access the Swarmify API. This Swarm CDN Key is required to configure your site for video delivery by Swarmify.
Before installing, read the SmartVideo getting-started overview!
What happens after I install?
After installing our script into your site’s header, SmartVideo will begin scanning your site for videos. Replace YouTube embeds and Replace Vimeo embeds are on by default on the Player page of your Swarmify dashboard, so the snippet includes autoreplace: { youtube: true, vimeo: true }, and any Vimeo videos on your site will be automatically converted to SmartVideo (if some never convert, see why). See Automatic Vimeo conversions for details.
SmartVideo imports Vimeo videos whose Who can watch setting is Anyone. To keep those videos private to your own site while SmartVideo serves them, set Where can this be embedded to Specific domains and list your website’s domain. Password-protected and Only me videos stay on Vimeo; change the setting to convert them.
A video usually converts to SmartVideo in about as long as it runs, so a 10-minute video takes about 10 minutes. A Vimeo embed switches to the SmartVideo player once its video has converted — look for its floating rounded control bar in place of your original embed. A YouTube embed switches right away and streams from YouTube inside the SmartVideo player until our copy is ready. For more ways to confirm it’s working, see How do I know SmartVideo is working?.
Note on YouTube: YouTube conversion is best-effort — YouTube’s download restrictions mean the fetch can fail, so some videos convert and some don’t. For playback you can rely on, download the video and upload it to your SmartVideo library through your SmartVideo dashboard, then place it on your page with a SmartVideo tag.
If auto-conversion is off, or your site has no Vimeo or YouTube embeds, our script won’t transform your current videos; they will have to be manually placed in a SmartVideo tag.
No worries, it’s not as difficult as it sounds 😉
Installation:
- Open Player in your Swarmify dashboard and click Copy snippet under Global install snippet.
- Navigate to your Squarespace dashboard and click Settings.

- Click Advanced.

- Click Code Injection. This requires a Core, Plus, Advanced, or eligible legacy billing plan.

- Paste the snippet into the Header textbox.
- Click Save.

And that’s it! 🎉
To add videos directly to your site, learn how to add a video to your site.
Why are some of my Vimeo videos not converting?
If most of your Vimeo videos converted but a few never did, even though the page is getting views, the cause is usually how those videos were embedded. SmartVideo finds Vimeo videos by scanning your page for a Vimeo player (an iframe whose src contains a vimeo.com video address). A video that reaches the page through a third-party embed service instead isn’t recognized, so SmartVideo never queues it for conversion. The page loads and counts views, and the video keeps playing from Vimeo.
How to tell: the video still shows the Vimeo player, with no floating rounded SmartVideo control bar (see How do I know SmartVideo is working?), while videos on other pages have switched. To check one video, open your page’s source (right-click the page, choose View Page Source) and find the video’s outermost iframe, the one written in the page’s own HTML. Don’t use Inspect on the video itself: it can land inside the player frame, whose src is about:blank and tells you nothing about the original embed. SmartVideo only reads that outer iframe, so its src must contain a vimeo.com address with the video’s number. If it starts with another host (for example cdn.embedly.com), the video is wrapped in a third-party embed and won’t convert.
The fix: embed the plain Vimeo link so the outer iframe points straight at player.vimeo.com, then remove the wrapped one. On the next page load SmartVideo can see the video, and it converts in about as long as it runs, like the rest.
If the outer iframe’s src passes that check and the video still doesn’t convert, check its Vimeo privacy settings (above). If you’re not sure which videos are affected, email support@swarmify.com with your site URL and we can check the site for the pattern.
Evaluating SmartVideo for Squarespace? See the Squarespace video hosting overview.