CategoryGoogle Analytics

Salesforce and Google Analytics Integration

The purpose of Salesforce and Google Analytics integration

If you spend any significant amount of money on online marketing, you know this little-known fact: not all leads are the same.

Even though they appear the same in Google Analytics reports, some of these leads may be ten times more valuable as the others. The problem is figuring out which are which.

Find out which marketing channels generate high-quality leads

Some of your marketing campaigns may be bringing lots of leads that rarely buy and only waste the valuable time of your sales team. While other channels may bring very few leads, but a good percentage of these lead become long-term customers who end up spending a lot of money with your company.

But do you measure this? It all comes down to a metric called “revenue per lead”:

Revenue per lead: Google Ads vs Facebook

Salesforce and GA integration gives you a 360 view of your marketing campaigns

The goal of marketing basically comes down to bringing a steady stream of lukewarm leads that will end up having high revenue per lead. To achieve that, you need to figure out which exact marketing channels, campaigns, blog posts, keywords etc are more likely to bring those leads.

This is exactly where Salesforce and Google Analytics comes in handy. It gives you a 360 view of your marketing campaigns, and lets you see the ROI of each channel, campaign, and keyword. So you can double down on marketing activities that work, and turn off things that only waste your budget and attention.

The benefits of Salesforce and Google Analytics integration

Salesforce and Google Analytics connection

In the nutshell, Salesforce and GA integration lets you track you the source of each Salesforce Lead and Opportunity. And then use this information to build reports that tell you exactly which marketing activities you should focus on.

Why? Because without this kind of connection you’re basically flying blind. If you’re selling “offline” to people who came from online marketing, it’s the only way to know if you’re spending money on low-quality leads or not.

How to implement Salesforce and Google Analytics integration

There are three options to implement this integration:

  1. Use native Salesforce and Google Analytics integration. Good option, but it only works for Google Analytics 360 which starts at $150,000/year. At the time of writing this article, Google doesn’t have any plans to support the Free edition of Google Analytics.
  2. Implement a custom integration. You can hire an agency or task in-house developers to implement a custom integration. Not a bad option, but it usually takes a lot of time and effort.
  3. Use GA Connector – a tool designed specifically to integrate Salesforce with Google Analytics. It lets you do the same as the previous two options, but without breaking the bank or spending many months working on the implementation.

How Salesforce and Google Analytics integration works

GA Connector imports Google Analytics into Salesforce Sales Cloud. You’ll be able to see analytics data for each Lead and Opportunity:

Google Analytics data imported to a Salesforce Lead

Google Analytics data imported to a Salesforce Lead

GA Connector comes with pre-built reports and dashboards that let you analyze how many opportunities and revenue were generated by each campaign, channel, page, keyword etc:

Google Analytcs dashboard in Salesforce

Google Analytcs dashboard in Salesforce

GA Connector also brings Salesforce data into Google Analytics:

Salesforce data in Google Analytics

Salesforce data in Google Analytics

Microsoft Dynamics CRM & Google Analytics integration

With MS Dynamics CRM and Google Analytics integration, you’ll be able to:

  • Know the source of each lead and sale.
  • Calculate the revenue coming from each marketing campaign, keyword, blog post, ad creative etc.
  • Measure the ROI and sales impact of each marketing activity.

MS Dynamics CRM & Google Analytics integration

How it works

  1. You website visitor comes to your website and fills out one of your web forms.
  2. This integration code on your website identifies the source, medium and other Google Analytics information about this visitor.
  3. When the form submission appears in your MS Dynamics CRM, it already has Google Analytics information associated with it:
Google Analytics data in Microsoft Dynamics CRM

Google Analytics data in Microsoft Dynamics CRM

How to implement this

To implement this integration, go to our website and sign up for a free 30-day trial of Microsoft Dynamics CRM & Google Analytics integration.

If you have any questions about this integration, feel free to contact us directly.

Top 4 Most Important Google Analytics KPIs

If you’re trying to make your business succeed online – you’re probably already aware of how important getting a solid handle on Google Analytics should be for you. There’s a huge amount of data that can be used to analyze, adapt and fine-tune how users behave on your site. This means you can better understand their motivations, and improve your optimization strategy to make better use of them – and ultimately make more money.

Google Analytics has a range of Key Performance Indicators, or KPIs. There are tons of different stats and metrics that give you a detailed view of all sort of different information related to your site and how your users interact with it. There’s a ton of information available – probably more than you actually need. If you’ve felt a little overwhelmed by the sheer amount of data, you’re not alone.

We’re going to look at a few of the most relevant and important KPIs for your business, recommended by a number of successful influencers in this industry – so you can drill down on the metrics that really matter without wasting too much time and effort on those that are less important.

What are the best KPIs for your business?

We talked to a number of different authorities in the industry to find out which KPIs worked for them. They all agreed that Google Analytics is a vital tool for any internet business, and here are the KPIs many of them couldn’t do business without.

Conversion Rate

This one is simple – but it’s also one of the most important. You’re probably already aware of what conversion rate means – it’s the ratio of people who “convert” to a single action as a percentage of visitors. It’s the bread and butter of any online business – and a hugely important figure to know.

“Conversion” for your site normally means making a sale or purchase, but it could also include signing up for a mailing list or opting-in to an offer. Knowing what percentage of visitors sign-up or convert to something gives you a good idea of how successful your opt-in pages and other converting methods are. You’ll be able to tweak landing pages or run A/B tests to find what works best and ultimately converts the most visitors.

Knowing how well your site converts visitors is also hugely important in determining how much you can spend on advertising or paid clicks. You’ll know if paying a certain amount per click is worth it depending on how many visitors you’re likely to convert (and how much you’ll make off each of them).

Goals Conversion Rate

Mona from Datapine makes use of a wide range of KPIs for the success of her business. One of the ones she recommends is “goals conversion rate”.

This one is similar to overall conversion rate, but can often be used for more bespoke outcomes like signing up for mailing lists, joining a community or simply leaving a comment. You can adapt your goals and target different actions that you want to optimize for, and this KPI will give you a detailed view of how many of the visitors to a certain page are performing that action.
Again, this makes it easier for you to make tweaks or alter your landing pages to more effectively complete your goals. You can run tests to find out which pages are converting better as well as fine-tuning your sales funnels and other calls-to-action. One you know which of your goals are performing better, you’ll be able to learn from your successes and roll them out across the site to make better conversions on everything.

Page Tracking Metrics

We’re going to include these under this sub-heading, but they actually cover a number of different KPIs related to how visitors perform and interact with your pages – things like bounce rate, pages per session and duration. These are all hugely important KPIs that give you a better understanding of how people are using your site and could help you make more from your visitors.

“Bounce Rate” tells you how many visitors enter your site and then leave immediately. You’ll obviously want to keep this as low as possible, and if you notice a high bounce rate you’ll know that you need to act and look further into why so many users are turned away as quickly as they arrive. Reducing bounce rates plays a huge role in how many visitors might actually act on your site, and therefore how much money you could make.

Other things like “pages per session” and “duration” give more indication of how visitors are behaving on your site. Are they just looing at one thing and then leaving, or are they spending a lot of time looking at tons of different information on your site? This could help you better understand what people are looking for and how good your internal linking structure is at leading users to other parts of your site. All of these are effective in improving the overall optimization of your site.

Revenue on Advertising Spend

This is another important KPIs that was recommended by a key internet marketing influencer. While converstion rates are important, this KPI drills down on exactly how much money you’re making compared to what you spend on advertising. It’s vitally important to know if your advertising efforts are making money for you – and if so, how much. You can look at how many leads certain adverts are getting you, along with their overall ROI. This can help you target more productive advertising streams while ignoring those that aren’t working for you.

You might also come to the conclusion that some forms of advertising simply don’t work for you or your business. Many business owners simply assume their advertising efforts are either working for them or not working for them without really knowing the facts or what is or isn’t effective. With this KPI, you can now how your adverts are working for you. Shahzad Saeed recommends the “revenue on advertising spend” KPI – it helps him get more from her advertising buck.

These key indicators are some of the most important KPIs to look for if you’re just getting started with Google Analytics or want to more effectively analyze how your site is performing and want to make tweaks accordingly. They’re just the start, though – as there are a huge number of other effective KPIs that can give you a better understanding of your site and help you market your business more effectively.

How to Measure Revenue on Advertising Spend (ROAS)?

If you’re looking to measure your ROAS, check out the tool we’ve built called GA Connector. It takes revenue and other data from your CRM (such as Salesforce or Zoho CRM) and imports it into Google Analytics:

CRM-to-GA Integration reports


GA Connector also brings your Google Analytics data into your CRM, allowing you to know which marketing channel is responsible for each lead and sale:

GA Connector Information about the website visitors

How to eliminate “” as a referral in Google Analytics

If you’re using Salesforce Web-to-Lead forms, you may encounter a problem with your Google Analytics reporting. When you look at your GA reports, you may notice that some goal conversions are attributed to the referral source of “” (or similar).

This is a problem, because it prevents you from seeing the source that actually drove those conversions.

Why does this happen?

When the user submits a form on your website, the forms submission is sent to Salesforce. Then, Salesforce redirects the user back to the website.

Google Analytics sees that the user came to the website from a new source (“”) and starts a new session with this source.

All future goal conversions from this user will be attributed to that Salesforce source. Which is a big problem for attribution.

How to fix this?

Google Analytics has a setting that allows to exclude certain referrals. You can use it to ignore “”. Here is the full method:

  1. Sign in to your Analytics account.
  2. Click Admin.
  3. In the ACCOUNT column, use the dropdown to select the Analytics account that contains the property you want to work with.
  4. In the PROPERTY column, use the dropdown to select a property.
  5. Click Tracking Info.
  6. Click Referral Exclusion List.
  7. To add a domain, click +ADD REFERRAL EXCLUSION.
  8. Enter “”.
  9. Click Create to save.

As a result, you will exclude “” and reveal the true source of your traffic.


Are you struggling to attribute offline conversions from Salesforce to your offline marketing campaigns? Check out our app GA Connector – it allows to integrate your Salesforce CRM with Google Analytics and track your website visitors all the way to a physical sale:

Top 12 Google Analytics Pro Tips

In 2015, I was struggling to make sense of my marketing data in Google Analytics. I didn‘t know which of my marketing campaigns actually worked, and which ones were burning my hard-earned money.

So I decided to learn all the nitty-gritty details of Google Analytics that I can. I studied the world‘s top Google Analytics pros in the world – guys like Justin Cutroni, Avinash Kaushik and Simo Ahava. This article is a collection of the best Google Analytics tips that I learned from them. I hope you enjoy these hidden gems as much as I do. 🙂

1. Are You Overestimating Your Traffic Numbers?

Google Analytics reports may be leading you to significantly overestimate the traffic from some channels

Most of us tend to rely on Google Analytics to estimate how much traffic each marketing channel brought to the website.
But the way Google Analytics works by default, it can lead you to overestimate the importance of some channels.

You see, Google Analytics may attribute a direct session (one that is started by entering the URL in the browser) to indirect channels.

Let‘s use an example.
Let‘s say that a user initially came to your site from organic search, and then came back 9 times.
In this case, Google Analytics will show you that there were 10 sessions brought by organic search.

This may result in a very distorted representation of traffic.

How to fix this?
Just active the secondary dimension “Direct Session” in your reports.

Google Analytics Secondary Dimension

P.S. By the way, this explains why your Adwords clicks and Analytics sessions numbers are so far off.


2. Is Adwords Stealing Your Organic traffic?

Your Adwords ads may be competing with your organic search rankings on Google. Here is how you can know for sure.

If you organically rank for some of the keywords you‘re advertising for, you may be wasting your advertising dollars.
Because if you rank high enough for a given keyword, it doesn‘t make sense to advertise for it.

I suspected that this may be the case for my Adwords campaigns, so I decided to check this using some basic statistics.

In statistics, there is a term called correlation, which stands for a statistical relationship between two variables.
If Adwords has a negative impact on organic search traffic, these variables should be negatively correlated.

So I measured the correlation between Adwords and organic search traffic.
It turns out that the correlation was -0.113, which is weak.

My fears about Adwords “stealing” organic traffic were not supported by data, so I keep investing in this channel in peace. 🙂

Here is how you can check if YOUR Adwords campaigns are “stealing” your organic search traffic:
1. Go to Google Analytics > Acquisition > All Traffic > Source/Medium
2. Create 2 segments: Adwords and Google Organic.
3. Export at least 90 days of data to CSV.
4. Transform data from your CSVs to single Google Spreadsheet so it looks like this:
Google Analytics Data

6. Then, use CORREL() function to find out if there is a correlation between these segments of traffic.
Interpreting this correlation coefficient requires some math skills, but the rule of thumb is that:

  •  0 to -0.2 is a very weak correlation, never mind it;
  •  -0.2 to -0.4 is a weak correlation, but worth paying attention to;
  • everything lower than -0.4 is a strong correlation.

3. Make Your GA Reports More Readable

After implementing these simple tips, your GA reports will become more readable & easier to drive conclusions from

Have you noticed that Google Analytics sometimes shows one page as two different ones?

  • /pagename
  • /pagename?nav=1

As a result, metrics in your reports are spread between these two pages (even though it‘s actually the same page).
Making it harder to analyze your results.

Same for campaign name, mediums etc.
If someone used “&medium=CPC” in a UTM tag, instead of more common “&medium=cpc”, GA will consider it as a different medium.
Which will make your reports a lot harder for you to read.

How to fix this?
1. Go to Google Analytics – Admin – View Settings – Exclude URL Query Parameters.
Then, input the common URL parameters that in case of your website don‘t count as separate pages.

2. Go to Go to Google Analytics – Admin – Filters, and add a filter that looks like this:

Google Analytics Lowercase Campaign Source Filter

It‘s also a good idea to create the same filters for:
+ Campaign name, term and medium
+ Request URI


4. Make You GA Reports Twice More Accurate

Just click on this one little checkbox to make your Google Analytics reports up to twice as accurate

Do you know that for most websites, bot traffic accounts for 63% to 80%?

Some of them are “good bots” (e.g. RSS readers).
But “bad bots” (e.g. spammers, impersonators, hackers) account for a staggering 27% of all web traffic, at least (according to a study by

Thankfully, Google Analytics has an easy way to eliminate them:
1. Go to Google Analytics – Admin – View Settings.
2. Check “Exclude all hits from known bots and spiders” under “Bot Filtering”.

That‘s it!


5. Avoid This Critical Google Analytics Mistake

Avoid this Google Analytics mistake that can seriously mess up your web analytics

You worked so hard to set up Google Analytics on your company‘s or your client‘s website.
But are you sure it works as intended?

Sometimes, there is a JavaScript error or something else went wrong, that could mess up the tracking.

To make sure that GA works properly, you can use Google Analytics Debugger.
It‘s a Chrome extension that outputs what happens with your GA tracking to browser console.

Just do the following:
1. Install the extension.
2. Open the target website.
3. Click on its icon in Chrome.
4. Press Ctrl + Shift + J (or Cmd + Option + J if you‘re on Mac).
5. In this console, you‘ll every nitty-gritty detail of what your website sends to GA.


6. Your Conversions Are Higher Than You Think

Google Analytics makes your conversion rates looks worse than they really are

Do you ever feel disappointed when looking at your conversion rates in Google Analytics?
I know I do sometimes.

And while there are always millions of things you can improve, your real conversions rates are actual higher than GA tells you.

The thing is, GA shows you conversion rate per session.
And one user can have many sessions.

I don’t know about you, but I care about how many users actually converted in the end.
Not what percentage of sessions resulted in a conversion.
If it took them 10 sessions to convert, I’m totally okay with that.:)

Here is what Avinash Kaushik suggests you do:

  1. Go to GA Admin – Calculated Metrics;
  2. Create a metric “Conv Rate Per User”;
  3. Set formatting type = “Percent”;
  4. Set Formula = “{{Form Submit – Quote (Goal 3 Completions)}} / {{Users}}”, but with your own goal name;
  5. Save, and then create a new custom report to show this new metrics, broken out by landing page, source/medium or whatever dimension(s) you care about the most right now.


7. Improve Your Analytics Accuracy by 20% Today

20% of your GA traffic may not really be from your customers (but you can exclude it)

If you’re constantly checking your site, tweaking details, and updating content, a sizable portion (10-30%) of your traffic is from you and your team, not from your customers.

Can you really rely on your Google Analytics data if its skewed by your own and your colleagues’ visits?

Removing internal visits will result in much more accurate reports and better decision-making.

You could set up a filter in GA to exclude your visits by IP address, but this method takes time and the filter needs to be updated constantly (when you connect from a different Wi-fi or if you have a dynamic IP address).

Instead, you can install this Chrome extension that will block Google Analytics for your browser, and ask your colleagues to do the same.

This will remove all internal page views and make your analytics much more accurate.

8. Make your GA Content Experiments 2X faster

Make your website 2X faster by removing the redirect in your Google Analytics Content Experiments

Before I reveal today’s insight…, can you please reply to this email and answer this short question: What’s the #1 biggest marketing challenge you’re struggling with right now? Your answer will help me deliver more relevant content.

Do you use Google Analytics Content Experiments, but hate those redirects it produces?
Split-testing is crucial, but it comes at a cost of bad user experience in the short term.

GA Content Experiments can slow down your pages by up to two times, because they force the website to be loaded twice.
This is really bad, but switching to a different split-testing engine is painful.

Would you like to keep using GA Content Experiments the same way you’re doing it now, but without the redirects?
To speed up your website and decrease the bounce rate caused by it?

Now it is possible!
In fact, the only reason that Experiments reload the pages is because they are implemented on the client side, using JavaScript.

This framework will allow your developer to move the Experiments engine to the back-end (where it can run in a fraction of a second).

9. Get 10X More Data About Your Users

Start tracking these 11 micro-conversions in under three minutes

You’re probably tracking how many people submit a form on your website.
But chances are, you don’t know what else they do on your website.

Usually only a small percentage of users convert.
Which leaves you flying blind when it comes to most of your users.

You don’t know if they clicked on:

  • the video and if they finished watching it;
  • the file download;
  • your email or phone number;
  • any outbound links;
  • your social media share buttons;

if they scrolled to the end.

Which really sucks!

Thankfully there is solution that allows to start tracking all those things above in under 3 minutes:
1. Put this script on your website:

<script src=”//“>
2. Open GA – Real-Time – Events – Events (Last 30 min).
3. Start doing stuff on your website (e.g. download files, watch videos etc) and notice new events pop up in GA.
4. Configure goals for your most important events. Use Behavior – Events – Overview to look up event labels.

10. Demystify up to 50% of Your Direct Traffic

Do you know that up to 50% of your direct traffic is actually just visitors that GA couldn’t identify?

Before I reveal today’s insight…, can you please reply to this email and answer this short question: What’s the #1 biggest marketing challenge you’re struggling with right now? Your answer will help me deliver more relevant content.

When you look at your Source/medium report in Google Analytics, you probably see that a lot of your visitors come from (direct)/(none).

Have you ever wondered that this data might be false?
And that you’re relying on false data when making marketing decisions?

The reality is, in many cases Google Analytics just couldn’t identify these visits, and therefore marked them as direct.

Here is how you can help Google Analytics identify more of your direct traffic:

  • Buy an SSL certificate and move your website from HTTP to HTTPS (if you haven’t already). The thing is, Google Analytics cannot identify most of the visits coming from HTTPS sites, if your site is HTTP;
  • Add UTM parameters wherever you can. You can use Campaign URL Builder to simplify this process;
  •  Implement the User ID feature if your users log in on your website. This allows to unify their sessions coming from different browsers and devices (which would otherwise be counted as separate users).

11. Are You Betting on the Wrong Traffic Sources?

You may be really underestimating (or overestimating) the true impact of these marketing channels

As you may know, by default, Google Analytics only gives credit to the very last traffic source before the conversion (last-click attribution).
But often times, users don’t convert right after coming to your website.

After clicking your Adwords ad, they might google your company name.
And then finally convert after clicking on your remarketing ad on Facebook.

In this case, three channels are involved (Adwords, Organic, Facebook).
But Google Analytics will only give credit to the last one.

If you have many users like this, you’ll give too much credit to the wrong channel (in this case, Facebook).
And not enough credit to Adwords.
Even though it was the main reason for your conversions.

Here is how you can find your most under-appreciated channels:

  1. Go to GA – Conversions > Multi-Channel Funnels > Assisted Conversions;
  2. Find which channels have the most Assisted conversions;
  3. These are the channels you might not be giving enough credit to.

12. How Fast Do Your Users Convert?

Uncover how many days does it take your visitors to convert

Do your users convert right away, or do they browse your site for a few days before making a decision?
How many days does it take them to convert?

Knowing this is important, because it allows to better understand the context of how the users land on your site, and optimize it accordingly.

These questions can be answered in a lesser-known Google Analytics report called Time Lag.
Just go to Google Analytics – Conversions > Multi-Channel Funnels > Time Lag, and you will see something like this:
Google Analytics Time Lag

Bonus Tip #13

If you’re like many businesses, your Google Analytics doesn’t integrate offline sales data from your CRM system. This could be causing you to spend a big chunk of your marketing budget on low-quality leads that don’t convert.

You need more than form fills and goal completions to make marketing decisions

It’s not enough to measure form fills, since different traffic sources attract clients of drastically different quality. One channel may generate a handful of high-converting long-term clients, while another may generate nothing but unqualified leads. The only way to evaluate a marketing approach is to track the revenue it generated.

By default, Google Analytics doesn’t track offline revenue

Most sales don’t happen online; they are closed by sales reps, either in person or over the phone. By default, Google Analytics doesn’t have access to these sales, so you have no idea how much revenue was generated by a certain approach, ad, article, or keyword. This results in spending money on leads that don’t buy anything.

The Solution is to integrate your CRM with Google Analytics:

You can do it using our app GA Connector.