Sign in
← Attribution docs
Documentation

What MTK Attribution captures

Every value the tag can record about a lead, in plain language, with example values. Each visit (session) is a touch: first-touch fields (mtk_first_*) freeze the visit that started the journey and never change; last-touch fields (mtk_last_*) refresh each new session to reflect the visit that closed it. For the exact signals behind each value, see the data source reference.

Attribution dimensions (first & last touch)

Each of these exists twice — a frozen first-touch field and a refreshed last-touch field — so you always see both the visit that created the lead and the one that converted it.

Channel
mtk_first_channel / mtk_last_channel

The normalized traffic bucket — the highest-level answer to “where did this lead come from?”. Derived from click IDs, UTMs, and the referrer (see the classification rules for the exact logic).

Example values: Paid Search, Paid Social, Organic Search, Organic Social, Email, Referral, Campaign, Direct

Source
mtk_first_source / mtk_last_source

The platform or site behind the visit — from utm_sourcewhen the visit was tagged (normalized to canonical platform names by default, so Meta's fb/ig arrive as Facebook/Instagram and paid search reads Google Ads — or verbatim, per license), otherwise recognized from the referrer, otherwise the referring domain itself. Direct when there was no referrer at all.

Example values: Google Ads, Facebook, Instagram, Google, Twitter/X, partnersite.com, Direct

Medium
mtk_first_medium / mtk_last_medium

The raw utm_medium value exactly as it arrived on the landing URL. Channel is the clean grouping derived from it — medium preserves what the link actually said.

Example values: cpc, paid_social, email, referral

Campaign
mtk_first_campaign / mtk_last_campaign

The utm_campaign value — the campaign name or ID your tracking template passed.

Example values: spring-sale-2026, 21837465120

Term
mtk_first_term / mtk_last_term

The utm_term value. With the recommended Google Ads template this is the bidded keyword ({keyword}).

Example values: emergency roof repair, crm software

Content
mtk_first_content / mtk_last_content

The utm_content value — typically the ad or creative identifier ({creative} on Google, {{ad.name}} on Meta).

Example values: 705912348811, video-testimonial-v2

Placement
mtk_first_ad_placement / mtk_last_ad_placement

The utm_placement value — where the ad showed, when your template passes it (e.g. {{placement}} on Meta).

Example values: Instagram_Stories, facebook_feed, g

Landing path
mtk_first_landing_page / mtk_last_landing_page

The path of the first page of the session — no domain, no query string.

Example values: /blog/how-to-winterize-your-roof, /pricing, /

Landing page group
mtk_first_landing_page_group / mtk_last_landing_page_group

The first URL path segment of the landing page — collapses hundreds of landing paths into the section of the site the visitor entered through. Empty only for homepage landings.

Example values: blog, services, pricing

Landing query
mtk_first_query / mtk_last_query

The landing page's full query string, leading ? included — the raw UTMs and click IDs exactly as they arrived, useful for auditing what a link really carried.

Example values: ?utm_source=google&utm_medium=cpc&gclid=Cj0K…

Click IDs & Meta identifiers

Captured for feeding conversions back to the ad platforms — offline conversion imports and Conversions API matching.

Google click ID
mtk_gclid

The gclid from the last paidtouch — pairs with Google Ads offline conversion import. Sticky, so a lead who clicked the ad and came back direct weeks later still carries the ID that earned the credit.

Example values: Cj0KCQjw…

Google iOS click IDs
mtk_gbraid / mtk_wbraid

Google's privacy-preserving iOS click IDs (gbraid web-to-app, wbraid app-to-web) — present instead of a gclid on much iOS traffic. Kept from the last paid touch, same as the gclid.

Example values: 0AAAAA…

Microsoft click ID
mtk_msclkid

The msclkid from Microsoft / Bing Ads, kept from the last paid touch. Its presence alone classifies the visit as Paid Search / Bing.

Example values: a1b2c3…

Meta identifiers
mtk_fbclid / mtk_fbc / mtk_fbp

The live fbclidURL parameter and Meta's _fbc / _fbp cookies — the match keys Meta Conversions API wants with an offline or server-side event.

Example values: IwAR2…, fb.1.1723…, fb.1.1698…

Journey & conversion insights

Computed across the whole journey rather than a single touch — captured once, at submit.

Journey string
mtk_journey_string

The whole journey as a readable string — one entry per session, oldest first. The single best field for understanding multi-touch leads at a glance.

Example values: Paid Social/Facebook > Organic Search/Google > Direct/Direct

Journey (JSON)
mtk_journey_json

The same journey as a JSON array (timestamp, channel, source, campaign per touch) for parsing downstream.

Example values: [{"t":1722946…,"channel":"Paid Social",…}]

Session count
mtk_session_count

How many sessions (touchpoints) the visitor made before converting.

Example values: 1, 4

Pageview count
mtk_pageview_count

Total pages viewed across all of those sessions.

Example values: 3, 27

First / last referrer
mtk_first_referrer / mtk_last_referrer

The full referring URL of the visit that started the journey (first) and the converting session (last). Empty on direct arrivals.

Example values: https://www.google.com/

Last paid touch
mtk_last_paid_touch

The most recent paidtouchpoint (Paid Search or Paid Social) anywhere in the journey — sticky, so it survives even journeys long enough to rotate old touches out. A lead that converted on a Direct visit still shows the ad that influenced it. Empty when the journey never had a paid touch — making “non-empty” a one-filter test for ad-influenced leads.

Example values: Paid Social/Facebook, Paid Search/Google Ads

Time since last paid touch
mtk_time_since_last_paid_touch

How long before conversion that last paid click happened — e.g. the lead converted two days after the ad. Compare against a platform's attribution window to argue influence the platform no longer counts.

Example values: 2d 6h, 14m

Paid touch count
mtk_paid_touch_count

How many paid touches the whole journey had — the frequency picture behind a conversion (three ad clicks before converting reads very differently than one).

Example values: 0, 1, 3

Time to conversion
mtk_time_to_conversion

First touch → submit, human-readable. How long the lead took to decide.

Example values: 12d 4h, 3h 41m, 6m

Conversion timestamp / datetime
mtk_conversion_unix / mtk_conversion_datetime

Submit time as Unix seconds (drops straight into Meta CAPI event_time) and as yyyy-MM-dd HH:mm:ss±HH:mm (the format Google Ads offline conversion import expects).

Example values: 1754462096, 2026-08-06 09:14:56-04:00

Custom conversion time
mtk_custom_conversion_time

Submit time shaped for the client's CRM or spreadsheet — the format (US, international, Unix, or Google-style), month name, hours/minutes/seconds, and an optional timezone override are all configured per license in the dashboard.

Example values: 08/06/2026 09:14, 6 Aug 2026, 1754462096

Summary
mtk_attribution_summary

Every other captured field rolled into one name: value | name: value string — for CRMs that only give you a single field to work with. Empty values are skipped.

Example values: mtk_first_channel: Paid Social | mtk_first_source: Facebook | mtk_last_channel: Organic Search | …

A worked example

A homeowner clicks a Facebook ad to a blog post, leaves, googles the company five days later, lands on the site, and submits the contact form. The lead arrives with (among others):

mtk_first_channelPaid Social
mtk_first_sourceFacebook
mtk_first_campaignroof-replacement-spring
mtk_first_landing_page/blog/how-to-winterize-your-roof
mtk_first_landing_page_groupblog
mtk_last_channelOrganic Search
mtk_last_sourceGoogle
mtk_last_landing_page/contact
mtk_last_landing_page_groupcontact
mtk_journey_stringPaid Social/Facebook > Organic Search/Google
mtk_session_count2
mtk_time_to_conversion5d 2h
mtk_last_paid_touchPaid Social/Facebook
mtk_time_since_last_paid_touch5d 2h
mtk_paid_touch_count1

Report on first touch to see what creates demand (the Facebook ad gets credit), last touch to see what closes it (the Google search), or the touch path for the full story.

Want richer campaign data in these fields? Set up the recommended UTM parameters on your ad platforms.

Capturing these values makes the site operator the data controller for them: disclose attribution tracking in the site's privacy policy and collect any visitor consent the region requires (GDPR, CCPA/CPRA, and similar). MTK sets no third-party cookies and does no cross-site tracking — it reads first-party cookies the site's own ad tags already set. Full detail in our privacy policy and terms.