Strategy One
Connect to Google Analytics
Create an OAuth Application in Google
-
Sign in to
https://console.cloud.google.com/apis/credentials. -
In the left navigation, click Credentials under APIs & Services.
-
Click Create credentials and choose OAuth client ID.
-
Expand the Application type drop-down list and choose Web application.
-
Type an application Name and click Create.
-
Copy the Client ID and Client secret values or click Download JSON. You will need Client ID and Client secret for future steps.
-
Click OK.
-
Click the application you just created.
-
Click Add URI and add a Callback URL for Web, Library, or Workstation using the following formats:
-
Web redirect URI:
https://<servername>/MicroStrategy/servlet/mstrWeb?evt=3172 -
Library redirect URI:
https://<servername>/MicroStrategyLibrary/auth/DIOAuthRedirect.jsp -
Workstation redirect URI:
http://127.0.0.1
-
-
Click Save.
Create a Google Analytics Data Source
Prerequisites
You must have the Configure security settings and Create and edit database instances and connections privileges.
Create a New Authentication Service in Workstation
For more information on creating identity and access management (IAM) objects, see Manage OAuth Enterprise Security with Identity and Access Management (IAM) Objects.
-
Open the Workstation window.
-
In the Navigation pane, click
, next to Enterprise Security. -
Choose Gateway Authorization and click Next.
-
Type a Display Name.
-
Expand the Select an identity provider drop-down list, choose Google.
-
In Strategy Configuration, enter the Client ID and Client Secret you copied in Create an OAuth Application in Google.
-
Click Save.
Connect to Google Drive in Mosaic Studio
- Create a Mosaic model or right-click an existing Mosaic model and choose Edit.
- In the Sources tab, click Add API Source.
-
Click Google Analytics.
-
Type a Name for the data source.
-
Expand the Authentication Service drop-down list and choose the authentication service you created in Create a New Authentication Service in Workstation.
-
Optionally click Test.
-
If the connection is successful, click Save.
Import Data
-
Click your Google Analytics source and enter your Google Login.
-
Click Account.
-
Expand the Version, Account, and Property drop-down lists and specify your Google Analytics account details.
-
Click OK.
-
Choose one of the following option to import Google Analytics data:
-
Import data with a predefined report:
-
In the left pane, view the Google Analytics reports.
-
Hover over a report name and click Add.
-
-
Import data by editing a predefined report:
-
In the left pane, view the Google Analytics reports.
-
Hover over a report name and click Edit.
-
Choose a Date Range and click Add Table from Query.
-
-
Import data with a custom query:
-
In the top navigation, click Add Custom Query.
-
Click Query Explorer and generate a custom query in the dialog.
-
-
-
Click Proceed.
-
View and choose suggestions, view object logical relationships, or automatically create attributes and metrics.
-
Click Save, Save as, or Publish.
-
If you Saveor Save as your Mosaic model:
-
Type a Name and Description.
-
Choose a Save in folder location.
-
Optionally, select the check box next to Certify Mosaic Model.
-
