Tutorial

It’s actually extremely simple: if you want only to track the visitors, only adding the Tracking ID is required.

If you would like to see some analytics in your dashboard, a bit more setup is required.

The Tracking ID

Visit Meow Apps → Analytics and enter your GA4 Measurement ID (it starts with G-). You can create a Google Analytics account by clicking here.

Dashboard Analytics

Create an App on Google Cloud

Google Cloud will ask you to set up the OAuth consent screen. Choose Internal if you use Google Workspace. With a personal Google account, choose External, add yourself as a test user, then publish the app, since tokens issued in Testing mode expire after 7 days.

  • Open the Google Cloud Platform. Create an App. You can call it whatever you like, but since it’s only for your sites, you can choose something like “For Meow Analytics” (you will be able to use this for all your sites).
  • In Enabled APIs & Services, add the Google Analytics Data API.
  • Open the Credentials page on Google Cloud, for this app.
  • Click Create credentials and select OAuth client ID.
  • For the Application type, select Web application (this is your WordPress, basically).
  • Give a name such as “My Website (for Meow Analytics)”, just so you remember what those credentials are for.
  • You will get a Client ID and a Client Secret.

Client ID and Client Secret

  • In the Settings of Meow Analytics, add the Client ID and Client Secret.

Authorize your website in Google Cloud

  • Back to Google Cloud, set the Authorized JavaScript origins and Authorized redirect URIs accordingly (Meow Analytics will give you those settings).
  • In the Settings of Meow Analytics, click Link this website with Google Analytics to connect your website to your app in Google Cloud.

Visit your WordPress Dashboard; you will be able to connect your WordPress to Google Analytics and see its data! You don’t need anything else and don’t worry, it’s free. And it wasn’t so hard, right?

Last but not least

You might want to check this link if you used an analytics plugin before: My Google Permissions. Companies behind those plugins might still be able to access your account. Check these permissions carefully in order to control who has access to your data.