Salesforce And Google Analytics Integration

Image

Salesforce And Google Analytics Integration

Google Analytics and Salesforce are two on-demand business tools, many B2B businesses use both tools to optimize their digital customer experiences. Nowadays many businesses use Salesforce CRM which is one of the most popular CRM based on different clouds to reach their sales and marketing needs. Integrating this combination of Salesforce and Google Analytics we can organize and analyze our users’ data and use the insights to enrich your sales and marketing operations.

What is Google Analytics?

Google Analytics is a platform that gathers data from our websites and apps to generate reports which provide insights into your business.

What is Salesforce?

Salesforce is the number one CRM; it is a technology that manages all our company's relationships and interactions with customers and potential customers. It is a cloud-based software solution for sales, service, marketing, collaboration, etc.

Benefits of Salesforce and Google Analytics Integration

  • Using Salesforce and Google Analytics integration we can help our sales team to get key insights into their CRM.

  • It helps us to boost our lead conversation rate and we can reduce our marketing expenses.

  • It helps us to improve our sales and revenue, by investing in the right marketing channels is one of the things to measure their performance.

Salesforce Integration with Google Analytics via REST API

For the salesforce Integration with google analytics, we need credentials from GA such as client ID, Secret key, and Access token. Here are the steps we need to follow to integrate Salesforce and Google Analytics:

Step 1:

  • Create an account in Google analytics. While creating an account we have to enable the Create a Universal Analytics property to create View.

  • Create a project for which you are going to work.

  • The main part is to create Credentials. In the Credentials option, we have to click create Credentials followed by OAuth 2.0 Client IDs where we will get our Client ID and Secret key.

Step 2:

In Salesforce firstly we need to do Remote Site Setting here we have to add the base URL of google analytics.

Step 3:

  • First, we need to create a REST class to fetch the data from Google Analytics. The credentials which we have created in GA we use here and we have to mention Authorize Endpoint URL, Redirect URI to request access, and Scope as well.

  • After that we create a VF page and call the REST class from the VF page. Bellow image showing the accounts that we fetch from Google Analytics.

Postman Testing

Postman is an API-based tool that is used to develop and test the API (Application program Interface). It is mostly used to write functional tests, integration tests, regression tests, etc.

Written by:

Neha Bhagat

Salesforce Developer

LinkedIn

Related Post

Leave a Reply