Intercom logo

Intercom

Attribution data for Intercom

Know which marketing channel brought each conversation.

Your website

Script installed

SourceTag

Captures attribution

JS API

Reads cookie data

Intercom

Data arrives tagged

The problem

Intercom shows you conversations but not which marketing channel drove the visitor to your site.

How to set it up

SourceTag exposes attribution data via the JavaScript API (window.__sourcetag). Use Intercom's custom attributes to pass attribution data into conversation records.

1

Install SourceTag

Add the script tag to your site.

2

Pass data to Intercom

Use the JS API to read SourceTag data and set Intercom custom attributes.

3

View in Intercom

Check conversation records for the attribution custom attributes.

Using the JavaScript API

Chat tools don't use traditional forms, so SourceTag takes a different approach here. Instead of hidden fields, you read attribution data from the JavaScript API and pass it into Intercom's contact properties.

const fc = window.__sourcetag?.getFC();
const lc = window.__sourcetag?.getLC();
// Returns: channel, source, campaign, term, ...

The API gives you the same data that hidden fields capture. See the full JS API reference →

Frequently asked questions

Related integrations

Done-for-you attribution. Set up in 5 minutes.

14-day free trial. No credit card required. Every lead tagged with the source that created it.