Start for free – your first 3 months are freeSee the offer

Marketing and SEO

Connect Google Analytics 4, Google Tag Manager and Meta Pixel

Add your ID from Google Analytics 4, Tag Manager, Meta Pixel or AdSense in the website builder. Sitewig only loads tracking once the visitor says yes.

4 min readUpdated

On this page
  1. What comes with your plan?
  2. Find your ID
  3. Add the ID
  4. How consent controls tracking
  5. Test that it works
  6. Google AdSense
  7. Online shop
  8. Frequently asked questions
  9. I can't see the Website settings section?
  10. It says "Saved, but not included in your plan"?
  11. Why does Google Analytics show fewer visits than Sitewig's statistics?
  12. Can I add Google Ads conversions, Hotjar or LinkedIn?

If you want to measure visits in Google Analytics, or show ads to your visitors on Facebook and Instagram, the tracking code needs to be on your website. In Sitewig you don't have to copy any code – you just add your ID, and Sitewig makes sure tracking only starts once the visitor has said yes in the cookie banner.

What comes with your plan?

Tracking per plan

Google Analytics 4
Starter and above
Meta Pixel
Starter and above
Google Tag Manager
Pro and above
Google AdSense
Pro and above

If your plan doesn't include a feature, you'll see a box instead, with the name of the cheapest plan that has it and a link to See plans.

Find your ID

Three cards with the ID formats: G- for Google Analytics, GTM- for Tag Manager and digits only for Meta Pixel
What the three IDs look like
  • Google Analytics 4: The measurement ID is shown next to your data stream in GA4's admin area. It starts with G-, e.g. G-ABC123DEF4.
  • Google Tag Manager: The container ID is shown at the top of Tag Manager. It starts with GTM-, e.g. GTM-AB12CD3.
  • Meta Pixel: You'll find the pixel ID in Meta's Events Manager. It is digits only, e.g. 123456789012345.
  • Google AdSense: The publisher ID starts with ca-pub-, e.g. ca-pub-1234567890123456.

Add the ID

  1. Step 1: Open the settings

    Choose Website builder in the control panel, and press Open editor. Go to the Settings tab, and find the Website settings section.

  2. Step 2: Find Statistics and ads

    Under Statistics and ads there are four fields: Google Analytics 4 (measurement ID), Meta Pixel ID, Google Tag Manager (container ID) and Google AdSense (publisher ID).

    Statistics and ads on a Free plan, where the fields are replaced by boxes showing the plan you need
    Website settings: Statistics and ads with Google Analytics 4 and Meta Pixel ID filled in
  3. Step 3: Paste the ID

    Paste the ID into the right field. The format is checked straight away. If it says The format doesn't match., a space has probably crept in.

  4. Step 4: Add a link to your privacy policy

    When the site uses tracking, the cookie banner needs a link to your privacy policy. Fill in Link to cookie and privacy policy (https) under Cookie banner, otherwise you can't save.

  5. Step 5: Save and publish

    Press Save settings. It says Saved. Publish the site to use the changes. Press Publish at the top of the editor.

Sitewig loads no tracking until the visitor has made a choice in the cookie banner. Google is told via Consent Mode, which starts at "no" and only changes once the visitor says yes.

The cookie banner blocks tracking until the visitor chooses, and only approved categories are loaded
GA4 requires a yes to statistics, Meta Pixel and Tag Manager require a yes to marketing
FieldCategory in the cookie banner
Google Analytics 4Statistics
Meta PixelMarketing
Google Tag ManagerMarketing
Google AdSenseMarketing

Test that it works

  1. Open your website in a private window.
  2. Press Accept all in the cookie banner.
  3. Look at GA4's real-time report, or use Meta's browser extension to check the pixel.

Google AdSense

When you fill in the AdSense field, Sitewig automatically creates the ads.txt file when you publish. In the EU, Google requires a certified consent solution for ads. You must therefore set up Google's Privacy & messaging message in your AdSense account and tick the confirmation under the field before you can save. The panel shows whether Sitewig is currently only publishing ads.txt, or whether only non-personalised ads are shown.

Online shop

If you have an online shop on Sitewig, purchases and basket activity can be sent as events to Google Analytics, Tag Manager and Meta Pixel – also only after consent.

Frequently asked questions

I can't see the Website settings section?

The section is under the Settings tab in the website builder. If you can't see it, contact support.

It says "Saved, but not included in your plan"?

You've saved an ID that your current plan doesn't cover, for example after a downgrade. The ID is saved, but it isn't added to the site until you have a plan with the feature.

Why does Google Analytics show fewer visits than Sitewig's statistics?

Google Analytics only measures those who say yes to statistics. Sitewig's built-in statistics count page views without cookies. Read more in View your website's visitor numbers.

Can I add Google Ads conversions, Hotjar or LinkedIn?

There isn't a separate field for them. Use Google Tag Manager, or add the code under Custom code – see Add your own code safely, with consent.

Didn't find the answer?

Reply within 1 working day · Mon–Fri 8:00–17:00 CET