Moving Analytics, Tracking Codes and Search Console From WordPress to Lovable
How to carry Google Analytics, Tag Manager, ad pixels and Search Console across to a Lovable site without losing history, and how to check tracking works after launch.
This page recommends Lovable and contains partner links. If you sign up through one I may earn a commission, at no extra cost to you. Disclosure.
The short answer
Your analytics history lives in Google Analytics, not in WordPress, so it carries on as long as the new site sends data to the same property. List every tracking code WordPress loaded (often through plugins), add the ones you still need to the Lovable site, make sure single-page navigation still records page views, respect cookie consent, and check data arrives after launch. Search Console verification also needs re-checking if it relied on a WordPress plugin or theme tag.
5 sections
On this page
01List every tracking code first
ShowHide
WordPress sites often load tracking through several places at once: a Site Kit or analytics plugin, a header and footer plugin, the theme settings and Tag Manager. View the page source of your live site and note each one.
Google Analytics 4
Where to find the IDStarts
G-Keep?Yes, if you use it: reuse the same property to keep history
Google Tag Manager
Where to find the IDStarts
GTM-Keep?Reuse the same container if it is set up well
Ad pixels (Meta, LinkedIn, Google Ads)
Where to find the IDInside Tag Manager or a plugin
Keep?Only if you run those ads
Search Console verification
Where to find the IDMeta tag, DNS record or analytics
Keep?Check it still verifies after launch
Other tools (heatmaps, chat)
Where to find the IDPlugin settings
Keep?Only what you still use
| Code | Where to find the ID | Keep? |
|---|---|---|
| Google Analytics 4 | Starts G- | Yes, if you use it: reuse the same property to keep history |
| Google Tag Manager | Starts GTM- | Reuse the same container if it is set up well |
| Ad pixels (Meta, LinkedIn, Google Ads) | Inside Tag Manager or a plugin | Only if you run those ads |
| Search Console verification | Meta tag, DNS record or analytics | Check it still verifies after launch |
| Other tools (heatmaps, chat) | Plugin settings | Only what you still use |
02Keeping your history
ShowHide
Reports are stored per Google Analytics property. Add the same measurement ID or Tag Manager container to the new site and new visits continue in the same reports. Creating a new property starts from zero.
Search Console data belongs to the property. If your domain stays the same, the existing property keeps its history. A Domain property verified through DNS is the most robust, because it does not depend on a tag in the site.
03Page views on a modern site
ShowHide
A Lovable site changes pages without full reloads. Make sure analytics records a page view on each navigation, not only on the first load, then test by clicking through several pages and watching Realtime or Tag Manager preview.
04Consent
ShowHide
If you use cookies or similar tracking that is not strictly necessary, UK and EU rules generally require consent first. Rebuild the consent banner as part of the site and make tracking wait for it. See privacy, cookies and legal pages.
05Check after launch
ShowHide
- Realtime reports show your own visit on several pages.
- Key events (form submissions, calls, purchases) are recorded once, not twice.
- Tracking does not load before consent where consent is required.
- Search Console still shows the property as verified and the new sitemap is submitted.
- Old tracking plugins are not still loading from somewhere else, such as Tag Manager tags for pages that no longer exist.
Migration support
Want a hand with this part?
Want help moving your tracking across and checking it records properly? Tell me about your site and I will reply personally. Every move is quoted on what your site needs, and enquiring does not commit you to anything.
Ready to build the new site?
Start a Lovable project and rebuild privately before you touch your live domain.
Start on Lovable
Scan to try LovableOr tap the code on mobileSources and further reading
This guide was reviewed against official documentation on 25 November 2026. Recommendations are not guarantees; follow the live sources for current product details.
Read next
Content and SEO
Will I Lose My Google Rankings If I Move From WordPress to Lovable?
What happens to search rankings when you leave WordPress, what causes losses, and the checks before and after launch that protect your visibility.
Features and integrations
Privacy Policy, Cookie Banner and Form Consent After Leaving WordPress
WordPress plugins often handled cookie banners, privacy policies and form consent. What to rebuild on a Lovable site, what to check, and what changes when your hosting and data processors change.
Content and SEO
WordPress-to-Lovable SEO Migration: URLs, Redirects, Links and Validation
How to keep your search visibility when moving from WordPress: keep URLs where you can, map every changed URL to its closest match with a 301, fix internal and image links, and test it all before and after launch.


