How to setup a data import for Salesforce Sales Cloud
Setup Salesforce and Google Analytics
Before being able to send any of your Salesforce data to Google Analytics, you’ll have to do a few things so that each platform is able to send or receive the data necessary to collect and report correctly.
A full article detailing every step can be found here:
Connect a Salesforce Account
- Go to setup to be able to connect an account
- Then click on Salesforce to view all Accounts connected, as well as be able to connect a new account
- Click on “Add New Account”
- Select the account you want to connect and save
Create Custom Dimensions and Metrics in Google Analytics
Although not all custom dimensions and metrics are required, this is a list of what can be passed to Google Analytics and should be added:
- Go to your Google Analytics property, and open Admin – Custom Definitions – Custom Dimensions.
- Click “New Custom Dimension” and create the following custom dimensions as shown and listed below, depending on how many available custom dimensions you have available:
- Client ID (Scope: User or Session) – Required
- Lead Status (Scope: User or Session) – Required
- Lead ID (Scope: User or Session)
- Lead Score (Scope: User or Session)
- Lead Industry (Scope: User or Session)
- Lead Rating (Scope: User or Session)
- Opportunity ID (Scope: User or Session)
- Opportunity Probability (Scope: User or Session)
- Note from Google: “Whether you use session or user scope for your custom dimensions depends on your business model. For example, if you sell multiple types of products, and are gathering multiple lead forms per user, a session-scoped custom dimension works better than a user scoped dimension, because a user scoped dimension will be overwritten by subsequent leads for that user.
You should apply this same consideration to all of the Salesforce fields listed in the example above, as well as any other custom fields you wish to import.”
- Go to your Google Analytics property, and open Admin – Custom Definitions – Custom Metrics.
- Click “New Custom Metric” and create the following custom metrics as shown and listed below:
- Opportunity Amount (hit)
- Expected Revenue (hit)
Create a Data Import
- While still logged in, go to “Google Analytics Data Import“
- Click on “New Data Import”
- Enter a name for the Data Import you’re creating
- Follow the instructions here
- Click “Save”