Pricing & Plans

How do I add Google Analytics to my Wix website?

Adding Google Analytics 4 (GA4) to your Wix website is straightforward with the built-in integration. Here's everything you need to know to start tracking your website's performance.

Prerequisites

Before you begin, ensure you have:

  • A Wix Premium plan - GA4 integration is only available on paid plans, not free Wix sites
  • A connected custom domain for your Wix site
  • A Google Analytics 4 account set up and ready

Getting Your GA4 Measurement ID

First, you'll need to obtain your unique tracking ID from Google Analytics:

  1. Log in to your Google Analytics account
  2. Create a new GA4 property or navigate to an existing one
  3. Go to Admin settings
  4. Under Data Streams, select Web
  5. Copy your Measurement ID (it begins with "G-")

Connecting GA4 to Wix

Once you have your Measurement ID, follow these steps in your Wix dashboard:

  1. Navigate to Settings in your Wix dashboard
  2. Click on Marketing Integrations (you may also find this under Marketing & SEO)
  3. Locate Google Analytics in the list and click Connect
  4. Select Add Google Analytics ID
  5. Paste your GA4 Measurement ID into the field
  6. Click Save to apply the changes

For more detailed guidance, visit the official Wix SEO Learning Hub on Google Analytics 4.

Verification and Data Collection

After connecting GA4 to your Wix site:

  • Allow 24-48 hours for data to begin appearing in your GA4 reports
  • Use GA4's Real-Time reports to verify that tracking is working immediately
  • Check that page views and events are being recorded correctly

Best Practices

Verify Your Measurement ID: Double-check that you've entered the correct ID - even one wrong character will prevent tracking from working.

Avoid Duplicate Tracking: If you're using Google Tag Manager (GTM), don't add both the GTM container and the built-in GA4 integration, as this will cause double-counting of your data.

Test Your Setup: Use Google's Tag Assistant browser extension or GA4's Real-Time reports to confirm tracking is functioning properly before relying on the data.

Review Data Regularly: Monitor your analytics data for accuracy and make adjustments as needed to ensure you're capturing the right information.

Advanced Tracking with Google Tag Manager

For more sophisticated tracking needs such as custom events, enhanced e-commerce tracking, or complex conversion funnels, consider using Google Tag Manager:

  1. Create a GTM account and container
  2. In Wix, go to Settings > Tracking & Analytics > Custom Code
  3. Add your GTM container code snippet
  4. Configure your GA4 tag within the GTM interface
  5. Publish your container to make it live

This approach gives you greater flexibility and control over your tracking implementation without requiring code changes to your Wix site.

Common Issues and Solutions

If data isn't appearing in GA4 after 48 hours:

  • Verify you're using a Premium Wix plan with a connected domain
  • Confirm the Measurement ID is correct
  • Check that you don't have ad blockers interfering with tracking
  • Ensure you haven't accidentally added tracking code multiple times

By following these steps, you'll have Google Analytics successfully integrated with your Wix website, giving you valuable insights into your visitor behavior, traffic sources, and website performance.