WP Meta SEO: Google Analytics Integration

1. Activate analytics tracking

WP Meta SEO is fully integrated with Google Analytics. You can activate the tracking and display the Google Analytics data from the WordPress admin. 

 

google-analytic-menu


First, you have to get Client ID and Secret to use the Google Analytics Report. Go to https://console.cloud.google.com/apis/dashboard and create a new project.

 

create-project

 

Then setup a project name - you can provide any name you want, but do not include spaces or accents.

 

project-name

 

Then wait few seconds for the project creation.

 

creating-project

 

From the left navigation menu, click on “APIs & Services >> Credentials”

 

api-dashboard

 

If asked, add a name to your OAuth consent screen. Remember to choose your correct option in "Publishing status":

  • In production: Once you set your app status as "In production," your app will be available to anyone with a Google Account. Depending on how you configure your OAuth screen, you may have to submit your app for verification.
  • Testing: If your app is still being tested and built, you can set your status to "testing". In this state, you can test your app with a limited number of users. 

 

publish-status

 

Then at Credentials tab, click on “+ Create Credentials” >> OAuth client ID.

 

create-oauth-client

 

Choose Desktop app and name for your OAuth client ID. Then click on Create button.

 

create-oauth-name

 

A pop-up window including Client ID and Client Secret will appear. Keep these for the next step.

 

client-id-secret

 

If you have not enabled Google Analytics API, please go to APIs & Services > Library, search and enable it.

 

google-analytics-api

 

Now, back to WP Meta SEO > Google Analytics, you can paste Client ID and Client Secret in the fields. Remember to click on Save and Continue button.

 

fill-client-id

 

After that, click on Generate access code button, follow the steps to get the code, then go back to paste the Access code and hit on Save and Apply button.

 

access-code

 

Finally, you need to select the Google Analytics property corresponding to your domain.

 

tracking-settings

 

WP Meta SEO offers some additional tracking settings:

  • Tracking Settings
  • Basic Tracking
  • Events Tracking
  • Exclude Tracking

 

tracking-code-tab

 

Note: On Google analytics, you should enable Create a Universal Analytics property option in Advanced options at Create property > Step 1: Property setup.

 

create-universal-analytics-property

 

The basic tracking options

 

basic-tracking

 

Tracking type: Classic Analytics and Universal Analytics.
Anonymize IPs while tracking: allow you to comply with some privacy protection laws available in different countries.
Enable demographics and interests reports: display remarketing, demographics and interests reports with Google Analytics. 

Events Tracking

This feature allows you to track downloads, mails, affiliates and outbound links. Depending on your needs, you can choose to include or exclude these actions from the bounce-rate calculations.
To track downloads, the plugin uses an extension list to properly distinguish files from regular links. You can use the Downloads Regex (a JavaScript regular expression) to add extra file extensions.

 

event-tracking

 

Exclude Tracking

This option is used to ignore traffic generated by certain logged-in users.

 

exclude-tracking

 

2. Get Google Analytics data

Congratulations! Google Analytics is now connected and you can get data from it.

 

google-analytic-report