How to get Google Analytics API Keys

In this tutorial we will explain how you can enable Google Analytics within RSSeo! and how to get your keys required for authentication.

Important:

You'll need at least RSSeo! version 1.18.19 (changelog), otherwise, updating your extension can be done as instructed here.

Steps you need to take:
  1. Access Google APIs Console.

  2. Login using your Google account and Create a new Project.

  3. Add a project name and click on the "Create" button (wait a few moments after you click the create button to load your project, otherwise you can manually select it).

  4. In the Dashboard view, click on ENABLE APIS AND SERVICES button and then search for the Analytics API.

  5. Enable the "Analytics API" by clicking on the "Enable" button at the top.

  6. Next click on the Credentials, then click the Create Credentials button and select OAuth client ID option.

  7. Click on the "Configure consent screen" button.

  8. Select "Internal" and click Create button.

  9. Add an 'App name' (this can be anything, for example RSSeo! - Analytics), select a User support email and include a developer email address (near the end) before clicking the Save and Continue button.

  10. You can skip the Scopes section by clicking the Save and Continue button. Then click the Back to Dashboard button.

  11. Select Credentials, then click the Create Credentials button and select OAuth client ID option.

  12. Select the 'Web Application' option on the next page. Within 'Authorized redirect URIs' add the following (examples, use https:// if you're using a secure connection):

    http://myWebsite.com/administrator/index.php?option=com_rsseo&task=analytics.connect

    Important: The links themselves have to be precisely added. For example, if you're accessing the website using www. or without www., you'll have to specify this as well. Examples:

    http://www.myWebsite.com/administrator/index.php?option=com_rsseo&task=analytics.connect

    http://myWebsite.com/administrator/index.php?option=com_rsseo&task=analytics.connect

  13. Click on the "Create" button.

  14. Your "Client ID" and the "Client secret" keys will be generated (these will be used within your RSSeo! configuration).

  15. Navigate to backend > Components > RSSeo! > here, click on the "Options" button, then Google Analytics.

  16. Setup your Google Analytics configuration:

    • Enable Google Analytics reports: enables the report functionality.
    • Google Client ID: this would be the Client ID key you've just generated (notice above picture).
    • Google Secret: your Google generated secret key (notice above picture).
  17. Save your configuration using the top button (your settings have to be saved first).

  18. Navigate to backend > Components > RSSeo! > Google Analytics.

  19. Press the "Authentificate" button.

  20. You will be redirected to Google which requests permissions to allow this data. Click on the "Accept" button.

  21. After being redirect back to your website, you'll have to select your account and click on the "Update" button (if you're using multiple accounts, you can use the logout button to switch between accounts).

    If everything is setup correctly your Google Analytics data will be displayed.

Note:

RSSeo! - Google Analytics tab, uses a session based functionality which lasts 1 hour. After 1 hour, you'll have to authenticate once again in order to view your Analytics data.


108 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

Analytics Manager

Google Keywords

Rich snippets

Visitors