Prompt
How do I track conversions across devices and sessions?
Latest observation
Oct 30, 2026
OpenAI APIWeb search: off
To track conversions across devices and sessions, you generally need to identify the same user consistently and link their activity over time. The right approach depends on whether you control logins, what platforms you use, and your privacy requirements.
Core idea
A conversion is easy to track within one session/device using cookies or session IDs.
Cross-device and cross-session tracking requires a persistent identifier, usually one of:
- User ID from login/account system — best and most reliable
- Hashed email / phone — often used in ad platforms and CRM matching
- First-party cookie / local storage ID — helps across sessions on the same device, not across devices
- Device graph / identity resolution — vendor-based matching using probabilistic or deterministic methods
Best practice: use a User ID
If users sign in, assign each user a unique internal ID and send it to your analytics/conversion tools.
How it works
- User visits on mobile and gets anonymous session events.
- User logs in on mobile → you associate events with
user_id. - User later visits on desktop and logs in again → same
user_id. - Analytics stitches both sessions/devices together into one user journey.
Typical implementation
- Set a unique
user_idafter login - Send
user_idwith every event - Also keep anonymous/session identifiers for pre-login behavior
- When the user logs in, link anonymous history to the authenticated ID if your platform supports it
If you don’t have logins
You can still improve tracking, but it’s less accurate.
Options
- First-party cookies: track returning users on the same browser/device
- Consent-based identifiers: for logged-in users or known contacts
- Email capture / lead forms: connect pre-conversion activity to later conversion
- Server-side event tracking: improves reliability and reduces browser-blocker loss
For ad platforms
If you want cross-device attribution in ads:
- Use Google Ads Enhanced Conversions
- Use Meta Conversions API
- Use TikTok Events API, Pinterest Conversions API, etc.
These often use:
- Hashed customer data
- Server-side events
- Click IDs like
gclid,fbclid,ttclid
Recommended architecture
- Client-side tracking for page views, sessions, and form interactions
- Server-side tracking for purchases, signups, and other confirmed conversions
- Identity stitching using:
- login
user_id - hashed email/phone
- CRM/customer database
- login
- Attribution storage:
- preserve source/medium/campaign
- store click IDs
- tie them to the user record
- Consent management to comply with privacy laws
Key limitations
Even with good setup:
- Cross-device tracking is imperfect without login
- Privacy features and ad blockers can reduce accuracy
- Cookie restrictions make browser-only attribution less reliable
- You should follow GDPR/CCPA and get consent where required
Practical recommendation
If you want the most accurate setup:
- Require or encourage login
- Use a persistent
user_id - Implement server-side conversion tracking
- Capture and store campaign identifiers
- Send hashed first-party identifiers to analytics/ad platforms
If you want, I can also show you:
- a GA4 setup for cross-device conversion tracking,
- a Google Tag Manager / server-side implementation, or
- a platform-agnostic event schema you can use in your app.