When authenticating a customer's SFDC with their Google Analytics account we sometimes will run into a security error in which Google doesn't allow us the permissions to authenticate. This can be solved by clicking 'Advanced' in the bottom left most of the time but in cases where that is also not an option the customer can build their own Google Cloud Project for DST Authentication. This article goes over the steps to do this.
Follow these steps to use your own Google Cloud Project for DST authentication.
- Open the Google Cloud Platform dashboard and click on Create Project.
- For Project Name enter "Full Circle DST Connector". Select the Organization and Location that corresponds to your company's domain.
- Once the project is finished being created and you are redirected, click on Enable APIs and Services.
- For retrieving Google Analytics 4 data, search for Google Analytics Data API and click Enable on the API page. For retrieving Universal Analytics data, search for Google Analytics Reporting API and click Enable on the API page.
- On the left sidebar, select OAuth consent screen.
- Choose Internal for user type and then click Create.
- For Application Name enter "Full Circle DST Connector".
- Under Scopes for Google APIs, click Add scope and check the boxes with the following Scopes:
- .../auth/analytics.readonly
- openid
- .
. ./auth/userinfo .profile
- Under Authorized domains, add the following 3 domains: force.com, salesforce.com, cloudforce.com.
- Hit Save at the bottom of the page.
- On the left sidebar, select Credentials.
- Click Create Credentials and choose OAuth client ID.
- For Application type select Web application and name it Full Circle DST.
- Click Create at the bottom of the page.
- That's it! You will be provided with a Client ID and Client Secret which you will use when setting up the Auth. Provider in Salesforce (Client ID corresponds to Consumer Key, and Client Secret corresponds to Consumer Secret).
- If you need to retrieve them again, you can find the Client ID and Client Secret if you click on Full Circle DST under the OAuth 2.0 Client IDs section on the Credentials page.
- After setting up the Auth. Provider in Salesforce, you will return to your GCP project to add the Callback URL under Authorized redirect URIs on the Full Circle DST client ID page.
Tags recommended by the template: article:topic-guide
Comments
0 comments
Please sign in to leave a comment.