Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Wix or Squarespace custom code removed: how to find and fix it

OPS-280High impactDetectedBy FunnelGuardPublished Updated
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

Typical ways custom code injection gets lost
CausePlatformWhat happens
Plan downgrade or lapseSquarespace, WixCode 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 switchSquarespaceChanging template family or duplicating a site can leave code injection empty or different.
Collaborator editBothSomeone clears a box, replaces a snippet or deletes a Custom Code entry while tidying up.
Wrong placement or page scopeWixThe snippet is set to load on one page, or in the wrong location (head vs body), instead of all pages.
Domain changeBothA new primary domain or a connected domain mismatch means tags or consent settings tied to the old domain stop matching.
Syntax error in the snippetBothA 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.

Conversions reported vs real leadsExample numbers
Conversions reported vs real leads (example)Real leads (CRM): 40 leads per week; Conversions in ad platform, code present: 38 leads per week; Conversions in ad platform, code removed: 0 leads per week0153140380Real leads (CRM)Conversions in ad pla…Conversions in ad pla…leads per week

Example: the site keeps collecting 40 real leads a week, but once the code is removed the ad platform sees none of them.

Where the chain breaks
  1. Ad clickVisitor lands on the site
  2. Page loadsCustom code should load here
  3. Form submittedLead is real
  4. Conversion tagNever sent
  5. 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

Check whether your code is still loading
  1. 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.

  2. 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.

  3. 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.

  4. Use a tag debugging tool

    Google Tag Assistant or Meta Pixel Helper will show which tags were found on the page.

  5. Check your plan

    Open billing and confirm the plan still includes custom code or code injection.

How to fix it

Restore the code on your platform
  1. Confirm your plan

    Make sure the site is on a premium plan with a connected domain. Custom code needs a paid plan.

  2. Open Custom Code

    Go to Settings > Custom Code (under Advanced). Select Add Custom Code.

  3. Paste the snippet

    Paste the full tag, name it clearly, and choose All pages and Load code once.

  4. Set the placement

    Choose Head for most analytics and tag manager scripts. Use Body - start for the GTM noscript part.

  5. Apply and publish

    Click Apply, then publish the site. Code does not run on the live site until you publish.

Example: Google Tag Manager head snippet (replace GTM-XXXXXXX)html
<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

Confirmation checklist
  • 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
Page load before and after the fix

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

Prevention habits
  • 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.

A tag that never fires

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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: Tag contracts.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.