Discussions

Ask a Question
Back to all

How to track users from different traffic sources (UTM, referrers, direct) for a web video chat?

Hi! I run a browser-based random video chat (xmegle.com) and I'm setting up product analytics with Rakam. Users come from many places: organic search, referral links from blogs and forums, social media, campaigns with UTM tags and direct visits. Most of them don't register, so there is no user ID at first. A few questions: 1) What is the recommended way to capture utm_source / utm_medium / utm_campaign and the document referrer on the first page view, and keep them attached to all later events of the same anonymous user? 2) How should I merge the anonymous device ID with a user ID if the visitor signs up later, so the original source isn't lost? 3) Is there a built-in first-touch / last-touch attribution report, or should I build it as a custom SQL report? Any example event schema or SQL would be very helpful. Thanks!