How to Connect Your Google Analytics Account
Analytix connects to Google Analytics 4 via OAuth 2.0. You authorise access once and Analytix stores the token securely in your WordPress database — your credentials are never sent to our servers.
Step 1 — Open the Authentication tab
- In your WordPress admin go to Analytix → Settings.
- Click the Authentication tab (
agwp-auth).
Step 2 — Enter your Google API credentials
Analytix uses your own Google Cloud credentials so your data stays private and the API quota belongs to your project.
- Go to Google Cloud Console and create or select a project.
- Enable the Google Analytics Data API and Google Analytics Admin API for your project.
- Under APIs & Services → Credentials, create an OAuth 2.0 Client ID (application type: Web application).
- Add your site's callback URL as an authorised redirect URI — Analytix shows the exact URL to copy on the Authentication tab.
- Copy the Client ID and Client Secret into the corresponding fields in Analytix Settings → Authentication.
- Click Save.
Step 3 — Authorise with Google
- After saving, click the Connect with Google button.
- A Google OAuth consent screen will open — sign in with the Google account that has access to your GA4 property.
- Grant the requested permissions (Analytics read/edit and Search Console).
- You will be redirected back to Analytix Settings with a green "Connected" confirmation.
To disconnect at any time, visit Analytix → Settings → Authentication and click Disconnect, or revoke access from myaccount.google.com/permissions.