Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages

Help for owners

My website analytics went blank after I moved to a new platform or theme

Short answer

After a platform move the Google tag is often simply missing: the old tracking code lived in a theme, a plugin or the header of the old site. Check Google Analytics Realtime while you visit your own site. If nothing appears, the tag was not carried over or it is blocked.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • My visitor numbers fell to zero on the day of the new site.
  • Numbers dropped by about half and have not recovered.
  • Realtime shows nothing when I visit my own site.
  • Sales happen but analytics shows no conversions.
  • Some pages show data and others do not.

Why does this happen?

  1. The tracking code lived in the old theme or plugin

    Analytics works through a Google tag on each page. Google lists several ways to add it: entering the Measurement ID in a CMS field, pasting the tag code after the opening head tag on every page, or adding it through Google Tag Manager. A new platform starts without whichever of these the old site used.

  2. The Measurement ID is wrong or from another stream

    The ID starts with G- and belongs to one data stream. A copy from a test site, or a new stream created during the move, sends the data to a place you are not looking at.

  3. Only some pages carry the tag

    A tag added to the home page template but not to checkout, blog or landing pages gives partial numbers. Checkouts hosted by a payment provider can also lose the visitor's source.

  4. A consent banner now blocks the tag

    If the new site added a cookie banner, tags may wait for consent. Google notes that in the basic form of consent mode blocked tags collect no data, so there is nothing to model.

  5. Data is arriving but looks different

    Changed addresses, new page names or lost redirects make reports look broken while data flows. Google also says data can take up to 30 minutes to start appearing.

What can I do about it today?

  1. Open the Realtime report and visit your siteUse a phone on mobile data in a separate browser. If you appear within a few minutes, tracking works, and the problem is smaller than it looks.
  2. Find the Measurement ID in Google AnalyticsIn Admin, open Data streams, select your web stream and copy the ID. Keep it for the developer.
  3. Note what the old site usedTheme setting, plugin or Tag Manager. If you still have the old site or its backup, say where.
  4. Do not install a second tracking plugin yetTwo tags on one page double-count visits. Find out whether one is already present first.
  5. Write down the date it changedThe exact day of the switch lets a developer match it against what was released.

When should I bring someone in?

  • Realtime shows nothing and you cannot find where the tag should go.
  • You run ads or report numbers to others and need correct figures.
  • Purchases or leads are not recorded as conversions.

How do I handle it?

  1. Check what the site sendsI look at what each page actually loads, including checkout and thank-you pages, and compare it with the stream in your Google Analytics property.
  2. Restore tracking in one placeI add the tag the way your platform supports it, once, and remove any duplicates left from the old site.
  3. Check consent and conversionsI confirm that a consent banner does not block the tag unintentionally, and test that a purchase or form submission is counted.
  4. Record the gapI note the dates with no data so reports are read correctly later. Lost data cannot be recreated.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Can I recover the visits I missed?

No. Analytics only records visits while the tag is present. Your hosting or server logs may show rough traffic for the missing period.

How long until numbers reappear?

Google's setup guide says data can take up to 30 minutes to start appearing. Realtime is the quickest check.

Did my search ranking also drop?

Missing analytics does not change rankings. If traffic really fell after the move, that is a separate problem to investigate.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.