TeamSnap Chat DEV

Phase 2 — PageURL and first/last-touch Salesforce handoff

Current browser values

Current URL
—
Query string
—
document.referrer
—
Captured landing URL
—
PageURL sent to Salesforce
—
Hidden pre-chat handoff status
—
TEAMSNAP_FIRST_TOUCH
—
TEAMSNAP_LAST_TOUCH
—
Parsed first source
—
Parsed first medium
—
Parsed last source
—
Parsed last medium
—
Last hidden pre-chat payload
—

Staging-only simulations

Each source simulation clears both stored touches first, then runs the same attribution routine with a test referrer. This keeps the result deterministic even though this site does not need to be indexed by a search engine. Run the simulation before opening the chat.

The UTM test clears storage and reloads this page with sample campaign parameters. The current-visit button keeps FIRST_TOUCH intact so we can observe repeat-visit behavior.

Test log

Waiting for test…

Salesforce sandbox chat

This test sends PageURL, FirstTouchSource, FirstTouchMedium, LastTouchSource, and LastTouchMedium to Salesforce as hidden pre-chat values. The existing TeamSnap attribution-storage logic is unchanged.