Fraud Blocker

Clarity Connect integration

Salesforce Google Tag Manager Integration

Use Google Tag Manager to record where each visitor came from, store it on the Salesforce lead, and see which campaigns end in closed deals.

Campaign data captured by Google Tag Manager and stored in Salesforce

What Google Tag Manager and Salesforce share

Google Tag Manager doesn't hold customer records, so there is nothing to sync record for record. What the two can share is attribution. GTM runs on your website and can read the campaign parameters on the page a visitor lands on; Salesforce stores them on the lead when that visitor fills in a form. Once the lead becomes an opportunity, those fields show which campaigns brought in revenue.

CRM

Salesforce

Where leads become revenue

  • Leads
  • Campaign source fields
  • Opportunities
  • Closed-won amounts
Form or Clarity Connecton each submission
Website tags

Google Tag Manager

Runs on your site, stores nothing itself

  • UTM parameters
  • Google click ID (gclid)
  • First-party cookies
  • Form events

Website to Salesforce field mapping

A typical starting map. The Salesforce fields are custom fields your admin adds to Lead and Opportunity.

Captured by Google Tag ManagerSalesforceDirection
utm_source, utm_medium, utm_campaignCustom source fields on LeadWebsite to Salesforce
gclid (Google click ID)GCLID field on Lead, mapped to OpportunityWebsite to Salesforce
Form submissionNew leadWebsite to Salesforce
Opportunity closed wonGoogle Ads conversion via Data ManagerSalesforce to Google Ads

How the data gets from the page to the deal

Capture the source on the landing page

GTM's URL variable can read the query string of the landing page, and a Custom HTML tag can keep the UTM values and Google click ID in a first-party cookie. They survive until the visitor reaches a form, often several pages later.

Write it onto the lead

The form sends those values in hidden fields. With Salesforce Web-to-Lead they land on the new lead, though Web-to-Lead is capped at 500 leads a day. When the form posts to your store or portal first, Clarity Connect creates the lead through the Salesforce API with the same fields.

Closed deals back to Google Ads

Google Ads can import conversions from Salesforce through Google Ads Data Manager, which reads a GCLID field on the lead and opportunity to tie a closed deal to the ad click. Google ended support for its older Salesforce integration on 31 May 2025.

See Clarity Connect move an order

Watch an online order travel into the ERP and its status come back in our Clarity Connect demo, or book a live walkthrough on your own systems.

Book a demo

Is this an integration project at all?

For a simple marketing site, often not: it's a few GTM settings, hidden form fields and custom Salesforce fields. Clarity Connect earns its place when leads arrive through a store, customer portal or quote form that already sends data to Salesforce, or when the same attribution has to reach an ERP as well.

How Clarity Connect runs it

Clarity Connect is Clarity's integration platform. When a store or portal form is involved, it keeps a two-way connection to Salesforce and runs lead creation as a task in real time, with the campaign fields attached. It is the platform behind more than 3,000 Clarity integrations; there are demos in the Clarity Connect video playlist.

How a Clarity Connect project runs
  1. Discovery

    A Clarity business analyst documents the data fields and workflows each system can share and which ones you need.

  2. Tasks and mapping

    Each flow becomes a Connect task, such as orders to the ERP or stock to the store, set to run in real time or on a schedule.

  3. Testing

    Orders and updates are run end to end, including the return trip of statuses back to the customer-facing system.

  4. Live, with a dashboard

    Queues and scheduled tasks show in Connect's Hangfire dashboard. A job whose target is offline is retried 10 times, every 30 minutes, and can be re-queued once the cause is fixed.

Clarity Connect is sold as a SaaS subscription at $599 a month or as a one-time license at $15,000 with no ongoing fees, and larger projects are priced to scope. See pricing.

Questions

Does Google Tag Manager send data to Salesforce by itself?

No. GTM manages tags on your website. It can capture campaign values, but a form or an integration has to send them to Salesforce.

What happens past 500 Web-to-Lead submissions a day?

Salesforce queues the extra requests and emails the default lead creator; you can ask Salesforce support for a higher limit. Leads that Connect creates through the Salesforce API don't go through Web-to-Lead.

Can Salesforce report closed deals back to Google Ads?

Yes, through Google Ads Data Manager, as long as the GCLID is stored on the lead and carried to the opportunity.

What does Clarity Connect cost?

$599 a month on SaaS terms or a $15,000 one-time license without ongoing fees; larger projects are priced to scope. See pricing.

Related resources

Connect your site's campaign data to Salesforce

Tell us where your leads come from and which forms they use. A Clarity business analyst will work out what belongs in GTM, what belongs in Salesforce and whether Connect is needed at all.

Book a demo