Browse documentation
Documentation installation

Installing the Site overlay snippet

This guide shows where to paste the Site overlay snippet on the most common website platforms. The snippet is a single small <script> tag that you copy from your dashboard and add once to every page of your site. After that, you can launch the overlay from your website workspace while you browse your live pages.

Before you start

  1. Open SEO Perception → Dashboard.
  2. On the website row, click the three-dot (...) menu and choose Site overlay.
  3. Click Copy snippet. Keep the dashboard tab open—you will paste this snippet into your site below.

Rule of thumb: paste the snippet once, just before the closing </body> tag, on every page. Most platforms have a built-in field for exactly that. The snippet is safe to leave in place—your site visitors will not see anything unless you launch the overlay yourself.

WordPress (with a plugin) — recommended

If you are not comfortable editing theme files, use the free WPCode – Insert Headers and Footers plugin.

  1. In WordPress admin: Plugins → Add New. Search for Insert Headers and Footers and install/activate the WPCode version.
  2. Go to Code Snippets → Header & Footer.
  3. Paste the SEO Perception snippet into the Footer field.
  4. Click Save Changes.

If you use a caching plugin (WP Rocket, W3 Total Cache, etc.), purge the page cache so the change goes live for visitors.

WordPress (child theme functions.php)

Prefer code? Add the snippet through the wp_footer hook in your child theme’s functions.php so it survives theme updates.

add_action( 'wp_footer', 'seoperception_overlay_snippet' );

function seoperception_overlay_snippet() {
?>
<!-- paste the SEO Perception Site overlay snippet on the next line -->
<script src="https://app.seoperception.com/overlay/site-loader.js" data-api-base="https://app.seoperception.com" data-seoperception-overlay="v1" async></script>
<?php
}

Replace the example <script> line with the exact snippet you copied from your dashboard (it includes your site’s identifier). Save the file and clear any caching plugin.

Shopify

  1. Shopify admin → Online Store → Themes.
  2. On your active theme, click ...Edit code.
  3. Open Layout → theme.liquid.
  4. Press Cmd/Ctrl + F, search for </body>, and paste the snippet on a new line directly above it.
  5. Click Save.

Reference: Shopify Help Center — Editing theme code.

Wix

  1. Open your Site Dashboard.
  2. Go to Settings and choose Custom Code (under Development & integrations).
  3. Click + Add Custom Code.
  4. Paste the snippet into the code box and give it a name like SEO Perception overlay.
  5. Set Add Code to Pages: All pages and Place Code in: Body – end.
  6. Click Apply.

Custom Code requires a published Wix site with a connected domain. Reference: Wix Help Center — Embedding Custom Code on Your Site.

Squarespace

  1. In your Squarespace site, open Settings → Developer Tools → Code Injection (on some 7.1 sites this lives under Website Tools → Code Injection).
  2. Paste the snippet into the Footer field.
  3. Click Save.

Code Injection is available on the Core, Plus, Advanced, Business, and Commerce plans. It is not available on the Personal plan. Reference: Squarespace Help Center — Using code injection.

Webflow

  1. In your project, open Site Settings → Custom code.
  2. Paste the snippet inside Footer Code.
  3. Click Save changes.
  4. Click Publish on your site so the change goes live.

Reference: Webflow Help Center — Custom code in head and body tags.

Joomla

The simplest path is to install a small Custom Code / Headers & Footers extension from the official Joomla Extensions Directory and paste the snippet into its Footer field. That avoids editing template files and survives Joomla updates.

If you prefer a no-extension approach, ask your developer to register the snippet from a small system plugin using the Web Asset Manager (onBeforeCompileHead); the official Joomla! Documentation covers system plugin structure.

HubSpot

  1. In your HubSpot account, click the settings icon in the top navigation.
  2. In the left sidebar, go to Content → Pages.
  3. From the Choose a domain to edit its settings dropdown, pick the domain (or Default settings for all domains to apply everywhere).
  4. Scroll to Site Footer HTML. If the field is greyed out, click Override default settings.
  5. Paste the snippet into Site Footer HTML and click Save.

Reference: HubSpot Knowledge Base — Use code snippets with HubSpot content.

Google Tag Manager

If your site already uses GTM, you can deploy the snippet without touching the site code.

  1. In your GTM container, go to Tags → New and choose Custom HTML.
  2. Paste the SEO Perception snippet into the HTML field (keep the surrounding <script> tag).
  3. Open Triggering and select the built-in All Pages trigger.
  4. Click Save, then Submit and Publish the container.

Note: GTM Custom HTML tags are appended near the end of <body>, which is what we want. Reference: Google Tag Manager Help — Custom tags.

Plain HTML or static site

  1. Open the layout/template that produces every page (for example a shared layout.html, a base partial, or your generator’s template).
  2. Paste the snippet on a new line just before the closing </body> tag.
  3. Re-deploy or upload the updated files.

Verify the snippet is loading

  1. Open your live site in a fresh browser tab.
  2. Open DevTools (right-click → Inspect) and look at the Network tab.
  3. Reload the page. You should see a request to /overlay/site-loader.js on the SEO Perception domain return 200.

If you do not see the request, check the troubleshooting tips below, then return to your dashboard and use Site overlay → Copy snippet again to make sure the snippet is intact.

Troubleshooting

  • Snippet not in the page source. Confirm you pasted into a global footer field (not a single page or post), then purge any caching/CDN layer (Cloudflare, WP Rocket, Shopify CDN, etc.).
  • Code-strip plugins. Some security plugins or HTML minifiers strip <script> tags from custom fields. Allow-list the SEO Perception domain or paste via WPCode (WordPress) instead.
  • Strict Content Security Policy. If your site sets a custom CSP, allow the SEO Perception domain in script-src and connect-src.
  • Subdomains and staging. Add the snippet only on the production property you connected in SEO Perception. Staging copies will load the loader but cannot launch the overlay against your account.
  • Nothing happens when I open my site. The overlay does not appear automatically—you launch it from the website workspace in SEO Perception. See Site overlay.

Related articles

Stay in the loop

Weekly SEO teardowns, algorithm update alerts, and performance tactics—when we publish them.

We respect your privacy: we do not sell your email or spam you.

SEO Perception

We take all the dry, technical SEO data nobody wants to read, connect the dots with AI and decades of SEO expertise, and show you the fixes that matter most plus the opportunities with the biggest upside.


Google, PageSpeed, and PageSpeed Insights are trademarks of Google LLC. SEO Perception is not endorsed by or affiliated with Google. We use Google’s public PageSpeed Insights service because we find it useful for site owners.

© 2024 - 2026 SEO Perception. All rights reserved.

Built with love by Larsik Corp.