Google Analytics App Installation Guide

Google Analytics is a powerful web analytics tool which helps you gain meaningful insights of your website. Using Contentstack Marketplace you can easily install the Google Analytics app and use it within your stack.

This step-by-step guide explains how to install and configure the Google Analytics app in Contentstack Marketplace. With this, editors can see a graph of the page views for the URL corresponding to the current entry.

Note: When you install the Google Analytics app, by default, both the dashboard and sidebar widgets are configured.

Prerequisites

Steps for Execution

  1. Fetch View ID and Service Account Details
  2. Install and Configure the Google Analytics App
  3. Use the Google Analytics Dashboard Widget
  4. Use the Google Analytics Sidebar Widget
  1. Fetch View ID and Service Account Details

    To install and configure Google Analytics app in Contentstack Marketplace, you need access to Google Analytics service account and View ID.

    Refer to the Google Analytics documentation site to retrieve the JSON file of Google Service account and the View ID.

  2. Install and Configure the Google Analytics App

    Follow the steps below to install the application in Contentstack.

    1. Log in to your Contentstack account.
    2. On the left-hand-side primary navigation, you will find a new icon for Marketplace (as shown below). Click the icon to go to the Marketplace.
    3. marketplace_landing.png
    4. Within the Marketplace, you will be able to see all the apps available, hover over the Google Analytics app and click Install App.
    5. Google_Analytics_App_Install.png
    6. In the popup window, select the stack where you want the Google Analytics app to be installed and click the Install button.
    7. Now on the Configuration screen, enter the following details:
      1. View ID: Enter the View ID retrieved in Step 1.
      2. Import Service Account details: Enter the Service Account details retrieved in Step 1.
      3. Note: The project_id, client_email and private_key are mandatory fields in JSON file which cannot be edited.

        Google_Analytics_Config.png
    8. After adding the configuration details, click the Save button.
  3. Use the Google Analytics Dashboard Widget

    1. Select the Dashboard Widget icon to display your entire Google account analytics. By default, it displays the data for 30 days.
    2. From the options provided, you can select the number of days for which data should be displayed.
    3. Google_Analytics_D_Widget.png

    Use the Google Analytics Sidebar Widget

    1. Create an entry in a content type that has Title and URL as fields.
      1. In the Title field, enter a suitable title for your entry.
      2. In the URL field, enter the URL of the page for which you want to take the Google Analytics data.
      3. Save the entry.
      4. Google_Analytics_Side_Widget.png
    2. Go to Widgets in the sidebar and select the Google Analytics app you configured.
    3. Google_Analytics_App.png

      This displays the Google Analytics data for the specific page.

    4. From the options provided, you can select the number of days for which data should be displayed for the specific page.
    5. Google_Analytics_select_days.png

Was this article helpful?

Thanks for your feedbackSmile-icon

More articles in "Analytics"

On This Page

^