CampaignChain Google Analytics

This documentation covers the standard Google Analytics functionality available by default in the CampaignChain Community Edition.

Features

  • Connect a Google Analytics account to CampaignChain with username and password
  • Pull data from Google Analytics to relate the Website traffic during a campaign statistics of other Channels (e.g. likes of all Facebook posts).

Packages

The standard Google Analytics functionality is being provided by CampaignChain, Inc. through these packages:

Although these modules are based on Symfony bundles, they do not work independently of CampaignChain.

Installation

The above modules are included in the Community Edition by default.

Configuration

Before you can use Google Analytics data within CampaignChain, an OAuth app must be created in Google:

  1. Go to https://code.google.com/apis/console/ and create a new project if you did not do so yet.
  2. Go to https://console.developers.google.com/apis/library, search for these APIs and enable them: Analytics API, Google+ API
  3. Go to https://console.developers.google.com/apis/credentials, click on Create credentials and select OAuth client ID.
  4. On the next page, select Web application.
  5. Under Authorized JavaScript origins, enter the domain of your CampaignChain installation, e.g. http://mycampaignchain.com.
  6. Provide this URL as an Authorized redirect URI: http://mycampaignchain.com/security/authentication/client/oauth/login?hauth.done=Google. Make sure that you specify the correct scheme (http or https).
  7. The Callback URL’s parts must be identical with the router.request_context.host and router.request_context.scheme parameters defined in the app/config/parameters.yml configuration file.
  8. Once you have created the app, connect to a Location choosing Google Analytics as the Channel.
  9. When the Provide Application Credentials screen comes up, go back to https://console.developers.google.com/apis/credentials, select your app and copy and paste the Client ID and the Client Secret and insert it in the Provide Application Credentials form.

Issues

Please post reports, questions, suggestions, etc. at https://github.com/CampaignChain/campaignchain/issues.