Skip to content

Getting Google Analytics Attribution Into Freshsales CRM

Website analytics can show which visits arrived, but it does not by itself show which of those visits became leads, opportunities or customers. Moving channel and landing-page information into Freshsales closes that gap: every form submission carries its origin with it, so CRM reporting can connect marketing activity to pipeline and revenue.

Why visits alone are not enough

Google Analytics records visits well, but a CRM record created from a form usually contains only what the person typed: name, email and phone. Without origin data, sales and marketing cannot tell whether that contact came from a paid campaign, an organic search result, a social post or a referral, nor which page first brought them to the site.

The fix is to capture attribution at the moment of arrival, store it in the browser, and write it into the form submission. When the lead lands in Freshsales, the origin travels with the contact instead of living in a separate analytics report that nobody joins up.

How the attribution flow works

A small script placed on the website detects where each visitor came from, using the same kinds of signals Google Analytics uses. It groups that origin into a channel such as Paid Search, Paid Social or Organic Search and keeps the result in a browser cookie.

When the visitor later completes a lead form, the script fills hidden fields on that form with the stored channel and landing-page details. The visitor never sees those fields. The completed values are then submitted with the visible form answers and arrive in Freshsales as part of the same lead record.

Four-step setup checklist

Work through these steps in order:

  • Add hidden fields to every lead-capture form you want to measure. Most form builders, including Typeform, Jotform and Gravity Forms, support hidden fields.
  • Use exactly these six fields: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group.
  • Install the attribution script on the website so it can detect visitor origin and store it in a cookie.
  • Submit a test form yourself and check that all six hidden fields are populated in the background.
  • Confirm the values appear on the Freshsales lead record next to the name, phone and email the visitor entered.
  • Build reports in Freshsales, or in a connected BI tool, grouped by channel, drilldown and landing page.

A common failure is adding the fields but skipping the test submission. If the script is not installed, or the field names do not match, leads will arrive with empty attribution values and reports will undercount every channel.

Worked example: from click to CRM record

Consider a visitor who finds a cloud-storage brand through a paid search ad, clicks through, and submits a form. The hidden fields might be filled like this:

  • Channel: Paid Search
  • Channel Drilldown 1: Google
  • Channel Drilldown 2: Brand Campaign
  • Channel Drilldown 3: Dropbox
  • Landing Page: the first page the visitor saw, for example a features page for cloud storage
  • Landing Page Group: Features

That single record now answers two questions at once: the paid search campaign brought the visitor in, and the features content was the page that attracted them. Grouping landing pages also lets you roll related content together, so an entire blog section or features area can be measured as one unit while individual posts or pages remain visible underneath.

Four reports worth building first

Once attribution fields are present on leads, four reports give a fast read on performance:

  • Leads by Channel: a high-level split across Organic Search, Paid Search, Organic Social and other channels. If most leads come from organic search while most budget goes to paid search, that mismatch is worth revisiting.
  • Opportunities by Google Ads campaign: monthly opportunities broken down by campaign, showing which campaigns produce leads that sales actually works.
  • Customers by Facebook ad network: customers split across Facebook, Instagram, Messenger and WhatsApp placements, so ad placement decisions follow where customers actually come from.
  • Revenue from Organic Search by search engine: revenue attributed to organic search, compared against paid search and other channels, to judge whether SEO investment is paying back.

Start with the report closest to your next budget decision, then add the others as the data accumulates.

What to look for in the data

Channel and landing page are the two fields that do most of the work. Channel explains the route in, including drilldown detail such as the ad group, campaign or keyword behind a paid search visit. Landing page explains which content attracted the visitor, and its group lets you evaluate a whole content area at once.

With those fields flowing into Freshsales on every lead, reporting stops being a guess about which campaigns matter. You can see which channels bring leads, which convert to opportunities, which close as customers, and how much revenue each one generates.

Frequently asked questions

What do I need to add to my forms before data reaches Freshsales?

Add six hidden form fields: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group. Install the attribution script on the website, let it populate those fields when a visitor submits a form, and confirm that the values arrive in Freshsales alongside the contact details the visitor entered.

What is the difference between Channel and Landing Page?

Channel shows how a visitor arrived, such as paid search, paid social, organic search or referral. Landing Page shows the first page that visitor saw, such as a blog post or feature page. Together they separate the route in from the content that attracted the visitor.

Which reports should I build first in Freshsales?

Useful starting reports are leads by channel, opportunities by Google Ads campaign, customers by Facebook ad network, and revenue from organic search by search engine. Each one connects a marketing source to a later CRM outcome rather than stopping at website visits.