Not a developer? Go to MovableType.com

Documentation

Linking to Google Analytics

Website and blog access information from Google Analytics can be displayed in the Site Stats widget on the dashboard.

This relies on the Google API Console to connect and share information, which requires the use of the OAuth2 application. More information on the Google API Console is in Google API Console help.

Setting up the Google Analytics API.

  1. From System Overview, select a website or blog.
  2. From the left menu, click Settings and then Web Services.

    Linking to Google Analytics: 01 - Settings: Web Services

  3. Click the Google APIs Console link, located near the top of the settings screen.

  4. You will be directed to the Google Cloud Console screen. Click Create Project.
  5. The New Project window should appear. Enter the following information:

    • Project Name: The name of your project
    • Project ID: Your project ID (the default value can be left as is)

    Linking to Google Analytics: 02 - New Project

  6. Make sure the information entered is correct and then click Create.

  7. Once the project has been created, select APIs under APIs & auth.
  8. From the main overview menu, search for Analytics API and then change the status to ON.

    Linking to Google Analytics: 03 - Analytics API

  9. Select Registered apps from the left hand menu.

  10. Click the Register App button at the top of the screen.

    Linking to Google Analytics: 04 - Register App

  11. The Register New Application popup window should appear. Enter the following information:

    • Name: The name you want to use for your app
    • Platform: Select Web Application

    Linking to Google Analytics: 05 - Register New Application

  12. Make sure the information entered is correct and then click Register.

  13. Once the application is registered, you will be returned to the previous page. Click OAuth 2.0 Client ID.

    Linking to Google Analytics: 06 - OAuth Client ID

  14. Enter the Web Origin and Redirect URI for your app.

    • Web Origin: The URL domain. For example, if the application URL is http://www.example.com/cgi-bin/mt/mt.cgi?__mode=ga_oauth2callback, you would enter http://www.example.com.
    • Redirect URI: Copy the Authorized URI displayed on the Movable Type Google Analytics screen and paste into the field.

    Linking to Google Analytics: 07 - Generate

  15. Make sure the information is correct and then click Generate.

  16. A Client ID will be generated based on the information provided.
  17. Copy and paste the Client ID and Client Secret into the appropriate fields on the Google Analytics settings screen.

    Linking to Google Analytics: 08 - Settings Screen

  18. Click on the “Select Google Analytics profile” link at the bottom of the settings screen and an access permission (or account selection) popup window will appear.

    Linking to Google Analytics: 09 - Allow Access

  19. Once permission has been granted to the specified Google account, the popup window will close and you will be directed to the profile selection module window.

    Linking to Google Analytics: 10 - Select Profile

  20. Select the profile you want to use and then click OK. The Google Analytics profile linked to the selected profile will be displayed.

  21. Click Save Changes.
Back