SimpleWP

Add Google Analytics to your site and see your visitor numbers

Google Analytics counts the visitors of your site. SimpleWP adds the Google tag for you from a measurement ID, shows your visitor numbers once you connect your Google account, and can even create the Analytics property when you have none.

In the app

  1. Open your site in My Sites, open Get visitors and choose Google. Google Analytics has its own card there, Visitor numbers. If Google is not connected yet, connect it in this tab first.
  2. Tap Also show visitor numbers. Google asks once for two permissions, See your analytics numbers (read-only) and Edit your analytics setup; tap Continue to Google and allow both.
  3. Under Analytics property, the property that matches your site is marked suggested (matches your site). Tap Use this property and SimpleWP adds the tag.
  4. No property for your site yet: tap Create one for me and then Create and add tag to create one in your Analytics account. Or tap I already have a measurement ID, paste your G- ID and tap Check and add tag; Where do I find my measurement ID? shows where to find it.
  5. With a cookie banner, the tag waits for each visitor's consent. Without one, the card tells you and offers Turn on cookie banner. If another plugin or tag already counts your visitors, choose Keep it and show numbers or Replace with SimpleWP's tag.
  6. Choose 7 days, 28 days or 90 days to see Visitors, Visits, Page views and New visitors against the previous period, plus Top pages, Where visitors come from and who is on your site right now.
  7. Waiting for data: Google needs 24 to 48 hours, tap Check again later. Can't read numbers: tap Reconnect Google. For a site created before SimpleWP's current site setup, the card cannot add the tag; tap Contact support.
  8. Everything in this article can also be done in chat, in your own words.

In chat

Add my Google Analytics tag G-ABCD123456 to the site.

I checked your site first: it has no analytics yet and no cookie banner, so I can add the tag G-ABCD123456 to every page. Because the EU asks visitors' consent for analytics cookies, I can also switch on the cookie banner in the same step. Nothing changes until you confirm.

Chat shows a confirmation card; nothing changes until you choose Apply Changes.

Chat works on the site you have open in My Sites.

What it does

Adding the tag stores your measurement ID on the site and prints Google's tag on every page; removing it deletes the ID and the tag disappears at once. Reading visitor numbers never changes your site. Creating a property adds a property and a web data stream to an Analytics account of yours and then adds the tag. No email is sent.

Add the tag with your measurement ID

The measurement ID is the code that tells Google which property a visit belongs to. It starts with G- and looks like G-1A2BCD345E. To find it (you need at least the Editor role on the property):

  1. Go to analytics.google.com and sign in with the Google account that owns the property.
  2. Click Admin (the gear at the bottom left).
  3. Under Data collection and modification, click Data streams.
  4. Click the name of your website's stream. If you see no stream, click Add stream, choose Web and enter your site's address first.
  5. Under Stream details, copy the Measurement ID. IDs that start with AW- (Google Ads) or UA- (the old Universal Analytics) do not work here.
  6. Send it to chat: "Add my Google Analytics tag G-1A2BCD345E".

Before it adds anything, chat checks whether your site already has analytics, either a plugin such as Site Kit or MonsterInsights or a Google tag in the page. A second tag would count every visit twice, so chat tells you what it found and only adds the tag when you confirm.

Connect Google to see visitor numbers

Ask chat for your visitor numbers. If Google is not connected yet, it gives you a link. On Google's screen you see two permissions, and SimpleWP asks for both in this one step so you are never asked a second time:

  • Reading your Google Analytics data. This lets SimpleWP see your visitors, sessions, top pages and sources for the property you pick. It cannot change anything in Google.
  • Creating and editing Analytics properties. SimpleWP only uses this when you ask it to create a property for you. If you never do, it is never used.

After you allow access, chat lists the Analytics properties of your Google account and suggests the one whose stream matches your site's address. You can take the access away at any time: disconnect Google in SimpleWP, or remove SimpleWP from the third-party apps in your Google account's security settings.

You have no Google Analytics account yet

  1. Go to analytics.google.com, sign in and click Start measuring. Follow Google's steps to create a free account. SimpleWP cannot create the account for you, because you have to accept Google's terms yourself.
  2. Come back and ask chat: "Create a Google Analytics property for my site". SimpleWP creates the property and a web data stream for your site's address (with your site's time zone, and your shop's currency if you have one) and adds the tag right away.

Cookie consent and why your numbers are lower

Analytics cookies need your visitors' consent in the EU and the UK (GDPR and ePrivacy).

If your site has a cookie banner, the Google tag only loads after a visitor accepts statistics cookies. Visitors who decline are not counted, so Google shows fewer visitors than really came. That is expected, and it is the price of respecting their choice.

If your site has no cookie banner, SimpleWP still adds the tag and tells you about the EU rules, and offers to switch on the cookie banner in the same step. Without a banner the tag loads for every visitor. You can switch the banner on later: from then on the tag waits for consent, without any further step.

When the tag is on, the launch check counts analytics as installed, and your privacy policy and cookie policy get the analytics clause when you create or refresh them.

When something does not work

  • No numbers yet: Google needs 24 to 48 hours before its reports fill up. Visits appear in the realtime view within minutes; if your site has a cookie banner, accept the statistics cookies on your own site first.
  • The numbers belong to another website: you picked the wrong property. Ask chat to list your properties and choose the one whose stream shows your site's address.
  • Google says you have no access: your Google account lost access to the property, or you removed SimpleWP's access. Connect Google again, and check that the account has at least the Viewer role on the property.
  • You connected Google before Analytics was added: reconnect once, so Google can ask for the analytics permissions.
  • Visits are counted twice, or chat reports an existing tag: another analytics plugin or a pasted Google tag is already on the site. Remove one of the two. Ask chat to add the tag anyway only when you are sure.
  • The ID is refused: it must be G- followed by 4 to 16 capital letters or digits. Copy it again from Stream details.
  • Google says the limit is reached: wait a few minutes and ask again.
  • Your site was created before SimpleWP's current site setup: SimpleWP cannot add the tag to it. If the site already has a Google tag, reading your numbers still works. Contact support.
  • Your site runs an older version of the SimpleWP site code: when you ask for the Google tag, SimpleWP first updates the code (it makes a backup, installs the new code and checks the site), then adds the tag by itself. This takes a few minutes, and the site's activity shows when it is done, or if it could not be done, in which case the site stays exactly as it was. If chat still says the site code does not support Google Analytics (section missing), the update could not finish: contact support.