How to Add Google Analytics to Wix
Adding Google Analytics to your Wix site lets you see who visits, what they look at, and how they found you. This guide walks you through connecting your Wix account to Google Analytics, whether you use the newer GA4 property or the older Universal Analytics. You’ll need a free Google Analytics account and your Wix site’s dashboard ready.
What You’ll Need
- A Wix account with an active site (free or premium).
- A Google account (for Google Analytics).
- Your site’s dashboard access (you should be the owner or have admin permissions).
Step-by-Step
- Create a Google Analytics account (if you don’t have one). Go to analytics.google.com and sign in with your Google account. Click Start measuring and follow the prompts. Choose a name for your account (e.g., your business name), then set up a property (e.g., your website name). Select your reporting time zone and currency.
- Set up a data stream. In the property, click Data Streams (under Property settings) and then Add stream. Choose Web, enter your Wix site’s URL (e.g., https://yoursite.wixsite.com/example or your custom domain), and give the stream a name (e.g., “Wix site”). Click Create stream.
- Copy your Measurement ID. After creating the stream, you’ll see a Measurement ID (starts with G-). Copy it – you’ll paste it into Wix. If you’re using Universal Analytics (the old version), you’d copy a tracking ID starting with UA- instead. For new setups, GA4 is recommended.
- Open your Wix dashboard. Log in to Wix and go to your site’s dashboard. Click Settings (gear icon) in the left menu.
- Find the Tracking & Analytics section. In Settings, scroll down to Tracking & Analytics (under the “Advanced” or “Site Management” area depending on your editor version). Click on it.
- Add a new tool. Click + New Tool and select Google Analytics from the list.
- Paste your Measurement ID. In the field that appears, paste the Measurement ID you copied (e.g., G-XXXXXXXXXX). If you’re using Universal Analytics, paste your UA- ID instead.
- Choose where to add the code. Wix asks where you want to place the tracking code. Select All pages to track every page of your site. You can also choose to add it only to specific pages if needed.
- Save and publish. Click Apply or Save. Then, publish your site (if it’s not already live) to push the changes.
- Verify the connection. After a few hours (or up to 24 hours), check your Google Analytics dashboard. Go to Realtime report and visit your Wix site in a new tab – you should see yourself as an active user. If not, see Troubleshooting below.
Common Mistakes
- Using the wrong ID. Make sure you’re using the Measurement ID (G-) for GA4, not a tracking ID (UA-) unless you specifically set up Universal Analytics. Mixing them up will break tracking.
- Adding the code manually. Wix’s built-in integration is the correct way. Copying and pasting a script into the site’s HTML (via custom code) can cause double-counting or errors.
- Not publishing after adding. If you add the tracking code but don’t publish your site, the code won’t be live.
- Forgetting to test. Skipping the verification step means you might not realize tracking is broken until later.
Tips
- Use GA4. Universal Analytics is being phased out; if you’re starting fresh, create a GA4 property.
- Enable enhanced measurements. In GA4, under your data stream, turn on enhanced measurement to automatically track scrolls, outbound clicks, and site search.
- Set up goals (conversions). In GA4, create events for key actions like form submissions or button clicks, then mark them as conversions.
- Exclude your own visits. Use a browser extension or filter to block your own IP so your visits don’t skew the data.
- Wait for data. Analytics data is not real-time (except the Realtime report). Wait 24–48 hours before analyzing trends.
Troubleshooting
No data showing in Realtime. First, clear your browser cache and cookies, then visit your site again. Make sure you’re looking at the correct property and data stream. If still nothing, check that you pasted the Measurement ID correctly (no extra spaces).
Data shows but seems incomplete. If some pages are missing, go back to Wix and ensure you selected “All pages” when adding the tool. Also, check if you have any custom code that might be interfering.
You see a “Not installed” message in Google Analytics. This can take up to 24 hours to update. Wait, then re-check. If it persists, remove the tool from Wix and re-add it.
You’re using Universal Analytics but it’s not working. Universal Analytics is deprecated; consider switching to GA4. If you must use UA, ensure you copied the full tracking ID (UA-XXXXXXXXX-X) and that you haven’t accidentally used a GA4 ID.
Double-counting sessions. If you also added Google Analytics via a custom HTML code (e.g., in the site header), remove that code. Wix’s integration already includes the necessary script.
Frequently Asked Questions
Do I need a premium Wix plan to add Google Analytics? No, the tracking integration is available on all Wix plans, including free ones.
Can I add both Universal Analytics and GA4? Yes, you can add multiple tracking tools in Wix. But it’s best to migrate fully to GA4.
How long does it take for Google Analytics to show data? Typically a few hours, but it can take up to 24 hours. Realtime data should appear almost immediately after the code is live.
Will adding Google Analytics slow down my Wix site? No, the tracking code is lightweight and loaded asynchronously, so it won’t affect performance.
Can I track e-commerce purchases with Google Analytics on Wix? Yes, but you need to enable e-commerce tracking in GA4 and may need to use Wix’s built-in e-commerce integration or custom events.
Do I need to re-add the code if I change my domain? Yes, if you change your site’s URL, you’ll need to update the data stream in Google Analytics and re-add the code in Wix with the new domain.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.