Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Elementor/Webflow custom code not published: tracking fix

TRK-398High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Page builders let you paste tracking code (a GA4 tag, a Meta Pixel, a Google Tag Manager container) into a settings box instead of editing theme files. The code only counts once the published, public version of the page contains it. In Webflow, custom code saved in Project Settings or on a page does nothing on your live domain until you publish the site. In Elementor, code can sit in a Custom Code snippet, an HTML widget or a theme template with display conditions that never match, or an old cached copy of the page can be served.

Why it costs you leads or sales

If the tag is not on the live page, ad platforms receive no page views and no conversion events. Smart bidding in Google Ads and Meta optimises on those signals, so it loses data and spends less efficiently. Reports show traffic and leads dropping when nothing actually changed for customers. You may also pause campaigns that were working.

Where the signal is lost
  1. Code pasted in builderSaved in Webflow settings or Elementor
  2. Publish stepSite not republished, or cache/condition blocks it
  3. Live page loads tagNo tracking script in the live HTML
  4. Ad platforms get eventsNo page views or conversions arrive

The code exists in the builder, but the published page never carries it.

Conversions reported before and after the code goes missingExample numbers
Conversions reported before and after the code goes missing (example)Real leads: 40 conversions per week; Reported with tag live: 38 conversions per week; Reported with tag missing: 0 conversions per week0153140380Real leadsReported with tag liveReported with tag mis…conversions per week

Example: illustrative numbers. Real leads stay similar, but reported conversions fall to zero once the tag is not live.

How to check if your site has it

Check the live page, not the editor
  1. Open the live URL in a private window

    Use your real domain, not the editor, preview link or the webflow.io staging address (unless that is what you publish to).

  2. View the page source

    Right-click and choose View page source, then search for your ID, such as G-XXXXXXX, GTM-XXXXXXX or the Meta Pixel ID, or for googletagmanager.com and fbevents.js.

  3. Check network requests

    In browser DevTools open the Network tab, reload and filter for collect, gtm.js or facebook.com/tr. No requests means the tag is not running.

  4. Use a tag debugger

    Google Tag Assistant or the Meta Pixel Helper extension should detect the tag. If they say nothing was found, the code is not live.

  5. Test the pages that matter

    Check the thank-you page and form pages, not just the homepage. Code set per page may be missing there.

How to fix it

Publish the code on the live site
  1. Put the code in the right place

    For all pages go to Site settings > Custom code > Head code (or Footer code). For one page open Pages, the page's settings, then Custom code. Click Save.

  2. Publish the site

    Click Publish in the top right and tick every domain you use, including the custom domain. Saving alone does not update the live site.

  3. Check your plan

    Custom code needs a paid Site plan (or Workspace plan for some features). Confirm the site is on a plan that includes it and the custom domain is connected.

  4. Hard-reload the live page

    Open it in a private window and look for the tag in the source.

How to confirm it's fixed

Confirmation checklist
  • The tag ID appears in the live page source on the real domain.
  • Network tab shows requests to Google, Meta or your other platforms on page load.
  • Tag Assistant or Pixel Helper detects the tag.
  • GA4 Realtime or DebugView shows your test visit.
  • Submitting a test form or reaching the thank-you page fires the conversion event.
  • The tag fires once per page, not twice.

How to prevent it happening again

Make publishing part of the task, not an afterthought. Keep a short note of where each tag lives and who owns it. After any theme, plugin or builder update, recheck the live source. Avoid pasting the same tag in more than one place. Webflow also lets you publish to multiple domains, so confirm the production domain is ticked each time.

How it usually unfolds
  1. Day 0

    Someone adds a Meta Pixel in Webflow custom code and saves it.

  2. Day 0

    The site is not republished. The live pages stay unchanged.

  3. Day 3

    Ad reports show no new conversions. Nobody connects it to the missed publish.

  4. Day 7

    Source is checked, site is published and events return.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor loads your real, published pages on a schedule from the EU or the US and checks which tracking hits are actually sent to GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X and Reddit. If code was saved in a builder but never published, the hits do not appear 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 with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. It never clicks real ads and never bypasses CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

Questions people ask

Why is my Webflow custom code not showing on my live site?

Most often the site was saved but not published. Click Publish in Webflow and tick your custom domain, then view the page source on the live URL. Also check the code is in Site settings > Custom code and that your plan supports custom code.

Why is my Elementor custom code not loading?

Common causes are a snippet left as Draft, display conditions that exclude the page, an HTML widget placed on only one page, or cached pages. Set the snippet to Published with Entire Site, then regenerate Elementor CSS & Data and clear all caches.

How do I check if my tracking code is live?

Open the real URL in a private window, view the page source and search for your tag ID such as G-XXXXXXX or GTM-XXXXXXX. You can also check the Network tab for collect or gtm.js requests, or use Tag Assistant or Meta Pixel Helper.

Why does my tag work in preview but not on the real site?

Preview or the editor can run unpublished changes, while the public domain serves the last published version. Publish the site, clear caches and test the real domain again.

Do I need to publish Webflow after adding custom code?

Yes. Custom code only reaches visitors after you publish the site to the domain they use. Saving the settings changes the project, not the live pages.

Can caching hide my tracking code in Elementor?

Yes. A caching plugin, server cache or CDN can serve an older page without the snippet. Regenerate Elementor CSS & Data, then purge each cache layer and re-test in a private window.

How can I get alerted when tracking code disappears?

Use synthetic monitoring that loads your live pages and checks tracking hits. FunnelGuard does this on a schedule and sends one alert with a screenshot and likely cause when expected tags stop firing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.