Configuring Google Analytics

You can configure Google Analytics for use with a CMNTY Platform. Just follow the steps below:

  1. Go to https://console.developers.google.com/project. You’ll need a valid Google Account (usually, Gmail) in order to proceed.
  2. Press the blue Create Project button on the upper left corner.
  3. The next screen will appear with an input field: Project Name. Fill it in and press the blue Create button. It can take a couple of seconds before your Project is created.
  4. ! Optional Step Google may request SMS verification. Verify your phone number if you want to use the Google Cloud Platform.
  5. After creating the project, select API Manager from the side menu on the left. 
  6. Find the Analytics API and turn it ON. The Analytics API is part of the Advertising APIs. To turn it on, click the blue Enable API button.  
  7. From the Google API library, select “Analytics API”, then “Enable” on the following page.
  8. Now, select the Credentials from the side menu on the left.
  9. In the following screen, press the blue Create Credentials button.
  10. In the drop down that opens, select Service account key as your application type.  
  11. On the following page, under Service Account select “New service account“, under Service account name, enter what this service account will do (anything helpful or relevant will be fine, also Service account ID will auto fill from this name so no need to worry about that field), under Role selecting Project > Owner should be OK, and select JSON as your key type and click Create. A JSON file will be downloaded to your computer.
  12. The Service account ID that was created is important and you will need it later.  To view it you can go to “Manage service accounts” from the Credentials Page.   
  13. You can now proceed to http://google.com/analytics and log in.
  14. In the upper right corner, you’ll see the Sign In dropdown, select Analytics.  If Google Analytics are new to you, click on Sign up.
  15. Click on the Admin link to see your account(s), and the account Properties.
  16. Click on the dropdown under Property in the side menu and select Create new property.
  17. Fill in the required information for setting up a trackable Property.
    1 Select your new property (Website or App).
    2 Fill in the following fields:
    Account Name: Give a name to your account (for your own reference within Google Analytics). For example: CMNTY.
    Website Name: Give a name to your platform (for your own reference within Google Analytics). For example: Demo Platform.
    Website URL: Enter the URL of your platform. For example: demo.cmnty.com. Industry Category: Choose Online communities.
    Reporting Time Zone: Fill in your timezone.
    3 After filling in the required fields press Get Tracking ID.
  18. You will see a new screen with your Tracking-ID and Tracking code.
  19. Make sure you select the project that you want to configure (from the side menu).
  20. From the left menu, go back to Admin and Select User Management from your side menu, and paste the email address you’ve obtained (Service account ID in Step 12) in the section Add permissions for in the input field.
  21. You also need to select privileges for this user (Read & Analyze is enough). Press Add. Now you can configure your CMNTY Platform to connect with Google Analytics.
  22. Log in to your CMNTY platform and go to Admin > Configure > Third Party > Google Analytics. Fill in the following fields:
  23. JSON The JSON file downloaded to your computer can be opened by applications like Notepad or TextEdit. Copy the contents of that file to this field.
    View ID This is located within Google Analytics and can be found in Admin > View Settings
    Tracking ID This is located within Google Analytics and can be found in Admin > Property Settings
  24. After pressing Save, your CMNTY Platform is fully set up to cooperate with Google Analytics. On the Analyze page in your CMNTY platform (Admin>Analyze>Visitors), you can test whether you have succeeded. If you see a graph on the Visitors Overview page then everything is okay. Please note that it can activate immediately or up to 24 hours for Google to begin providing data for your CMNTY Platform.

Was this article helpful?

Related Articles