On this page
What this issue is
Both builders let you paste snippets into the site header or footer without editing templates. On Wix this is Settings > Custom Code (Custom Code in the dashboard). On Squarespace it is Settings > Developer Tools > Code Injection (or Advanced > Code Injection in older versions). The snippets usually hold your GA4 tag, Meta Pixel, Google Ads conversion tag, a Google Tag Manager container or a chat widget.
Common causes
| Cause | Platform | What happens |
|---|---|---|
| Plan downgrade or lapse | Squarespace, Wix | Code injection and custom code need a paid plan level that supports them. Below it, the feature is locked or the code stops loading. Check your current plan's feature list. |
| Template or site switch | Squarespace | Changing template family or duplicating a site can leave code injection empty or different. |
| Collaborator edit | Both | Someone clears a box, replaces a snippet or deletes a Custom Code entry while tidying up. |
| Wrong placement or page scope | Wix | The snippet is set to load on one page, or in the wrong location (head vs body), instead of all pages. |
| Domain change | Both | A new primary domain or a connected domain mismatch means tags or consent settings tied to the old domain stop matching. |
| Syntax error in the snippet | Both | A broken tag (missing closing script, smart quotes pasted from a document) stops everything after it. |
Why it costs you leads or sales
Ad platforms learn from the conversion events your pixels send. If the code is gone, Google Ads, Meta and others see no conversions. Smart bidding can drift toward worse traffic, remarketing audiences stop filling, and your reports show a sudden drop that looks like a demand problem. Meanwhile the site still takes leads, so it is easy to blame the ads.
Example: the site keeps collecting 40 real leads a week, but once the code is removed the ad platform sees none of them.
- Ad clickVisitor lands on the site
- Page loadsCustom code should load here
- Form submittedLead is real
- Conversion tagNever sent
- Ad platformSees no conversion
The visitor journey works, but the tracking step is missing, so the ad platform never learns about the result.
How to check if your site has it
Open the code settings
Wix: Settings > Custom Code. Squarespace: Settings > Developer Tools > Code Injection. Confirm your snippets are present and set to load on all pages.
View the live page source
Open your published site in a private window, right-click, choose View Page Source and search for your tag IDs (for example G-, AW-, GTM-, or fbq). Do this on the live URL, not the editor preview.
Watch network requests
Open browser DevTools > Network, reload, and filter for google-analytics, googletagmanager, facebook or your tool's domain. No requests means the tag is not running.
Use a tag debugging tool
Google Tag Assistant or Meta Pixel Helper will show which tags were found on the page.
Check your plan
Open billing and confirm the plan still includes custom code or code injection.
How to fix it
Confirm your plan
Make sure the site is on a premium plan with a connected domain. Custom code needs a paid plan.
Open Custom Code
Go to Settings > Custom Code (under Advanced). Select Add Custom Code.
Paste the snippet
Paste the full tag, name it clearly, and choose All pages and Load code once.
Set the placement
Choose Head for most analytics and tag manager scripts. Use Body - start for the GTM noscript part.
Apply and publish
Click Apply, then publish the site. Code does not run on the live site until you publish.
Confirm your plan
Code injection needs a plan that includes it. Check the plan comparison on your Squarespace billing page.
Open Code Injection
Go to Settings > Developer Tools > Code Injection.
Paste into the Header
Add your analytics and pixel snippets to the Header box. Add the GTM noscript part to the Footer or per its instructions.
Save
Click Save. Then reload the live site in a private window to check.
Check page-level injection
Some pages have their own header code under Page Settings > Advanced. Make sure nothing there conflicts.
Keep one snippet
Install only the GTM container in the builder and manage all other tags inside GTM. Then there is one thing to restore after a loss, not many.
Check the container is published
In GTM, confirm the latest version is published and the tags still have their triggers.
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>How to confirm it's fixed
- Live page source (private window) contains your tag IDs
- Network tab shows requests to your analytics and ad platforms on page load
- Tag Assistant or Pixel Helper lists each tag as found
- A test form submission or purchase step sends the conversion event
- Realtime reports in GA4 and your ad platform's event tester show the test visit
- Tags still fire on a second page and on mobile
Code removed
- No tag requests in the Network tab
- Realtime reports stay empty
- Conversions drop to zero in ad platforms
Code restored
- Tag requests fire on page load
- Realtime shows your test visit
- Conversions are recorded again
How to prevent it happening again
- Keep a copy of every injected snippet in a shared document or password manager
- Use one GTM container so there is only one snippet to restore
- Limit who can edit Settings and Developer Tools; use roles for collaborators
- Re-check tags after any plan change, template switch, domain change or site duplication
- Name each Wix custom code entry clearly so nobody deletes it as unknown
- Monitor tags on a schedule instead of relying on someone noticing a dip
How FunnelGuard handles this
FunnelGuard detects this today through its tag contract checks. A robot visitor runs your real customer journey on a schedule and checks that the expected tracking hits are sent to platforms such as GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X and Reddit. If the custom code is removed, the hits stop appearing and the check fails.
A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1) so you can filter it from reports. FunnelGuard does not read your Wix or Squarespace settings. It sees the result: whether the tags fire on the live page. The Free plan covers 1 site and 2 journeys with daily checks, no card needed.
The page loads and the lead arrives, but no tag request is sent.
Questions people ask
Why did my Wix custom code stop working?
Common causes are a plan downgrade or lapse, a deleted or edited Custom Code entry, a snippet set to the wrong pages, or a pasted syntax error. Also remember changes only go live after you publish. Check Settings > Custom Code, then view the live page source.
Why is my Squarespace code injection not showing on the site?
Check that your plan still supports code injection, that the code is in Settings > Developer Tools > Code Injection and saved, and that no page-level code conflicts. Then view the live page source in a private window, not the editor.
How do I check if my tracking code is loading on Wix or Squarespace?
Open the live site in a private window, view page source and search for your tag IDs. You can also open DevTools > Network and look for requests to analytics and ad domains, or use Google Tag Assistant or Meta Pixel Helper.
Does changing my Squarespace template remove code injection?
It can. Switching template families or duplicating a site may leave injected code missing or different, so re-check Code Injection and page-level settings after any template change.
Will my ad conversions recover after I re-add the code?
New conversions will be recorded once tags fire again. Conversions missed while the code was gone are not usually recovered, which is why finding the gap quickly matters.
Is it better to use Google Tag Manager on Wix or Squarespace?
It helps with maintenance. You inject one GTM snippet and manage other tags inside GTM, so if code is lost you restore one snippet instead of many. Tags are still lost if that one snippet is removed.
How can I be alerted when my tracking code disappears?
Use synthetic monitoring that runs your journey on a schedule and checks tracking hits. FunnelGuard does this and sends one alert with a screenshot and likely cause when expected hits stop arriving.
Related issues
- OPS-279Wix site plan expired (ads banner / site offline)Fix guide
- OPS-281Squarespace form storage disconnectedFix guide
- OPS-288Builder subscription lapse takes pages offlineFix guide
- OPS-277Webflow publish with broken form or missing embedFix guide
- OPS-291Framer/Carrd page form integration disconnectedFix guide
- OPS-278Webflow form submission limit / plan downgradeFix guide