GoHighLevel (GHL) is a popular all-in-one marketing platform used by agencies, coaches, and course creators. Because GHL doesn’t use WordPress, you’ll install SmartVideo by adding the Swarmify snippet to your site’s global header and then placing videos using a Custom HTML block.
If you don’t have a SmartVideo account yet, create one at dash.swarmify.com/signup. Once you’re registered, head back here to get set up.
Step 1: Get your Swarmify snippet
- Log in to your Swarmify dashboard.
- Open Player and click Copy snippet under Global install snippet. It’ll look something like this:
<script data-cfasync="false">
var swarmoptions = {
swarmcdnkey: "YOUR_SWARM_CDN_KEY",
autoreplace: { youtube: true, vimeo: true }
};
</script>
<script data-cfasync="false" async src="https://assets.swarmcdn.com/swarmcdn.js"></script>
Step 2: Add the snippet to your GHL site’s global header
This makes SmartVideo active on every page of your site — no need to add it page-by-page.
- In GoHighLevel, go to Sites → Websites (or Funnels) and open your website or funnel.
- Open the website or funnel’s Settings.
- Paste the Swarmify snippet into the Head tracking code field.
- Save.
To install SmartVideo on just one page or funnel step instead, open that page in the builder, click the code icon, paste the snippet into Header Tracking, and save.
Step 3: Add a video to a GHL page
Once the snippet is in your global header, you can place SmartVideo players anywhere using a Custom HTML block.
- Open the GHL page or funnel step you want to add a video to.
- Drag a Custom HTML element onto the page.
- Paste a SmartVideo tag inside it, replacing the
srcwith your actual video URL:
<smartvideo src="https://your-video.example.com/file.mp4"
width="1280" height="720"
class="swarm-fluid" controls>
</smartvideo>
- Save and preview the page. The SmartVideo player should appear automatically.
What happens after I install?
After adding the snippet to your GHL site’s header, SmartVideo will begin scanning your pages for videos. Replace YouTube embeds and Replace Vimeo embeds are on by default on the Player page, so the snippet already includes autoreplace: { youtube: true, vimeo: true }, and if you have Vimeo embeds on your site, they’ll be automatically converted to SmartVideo — no extra work needed. (The two settings work as one switch, so to turn this off, turn off both Replace YouTube embeds and Replace Vimeo embeds on the Player page in your Swarmify dashboard and copy the updated snippet.) 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.
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 using the Custom HTML block shown in Step 3.
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?.
Supported video sources
The src attribute accepts URLs from YouTube, Vimeo, Dropbox, Amazon S3, Wasabi, Google Drive, and more. See the full list in our video file sources guide.
Need help with SmartVideo tag options?
- Basic SmartVideo tag options - autoplay, mute, controls
- Advanced SmartVideo tag options - looping, poster images, and more
- How to add a video to a non-WordPress website
If you run into any issues, reach out to our support team and we’ll get you sorted!
Running client sites on GoHighLevel? See the agency video hosting overview.
Keywords: gohighlevel, ghl, highlevel, go high level