We use Google Tag Manager on our site, which uses Universal Analytics to track our customers.
The goal is to fetch referral information for specific customer in realtime when he signs up, so we can store that source in the database.
With older ga.js
tracking script some information could be fetched from the cookies, like it has been described here. However, Universal Analytics does not store any meaningful information in the cookies, and we need the alternative.
What is the easiest way to track the following information realtime?
- Referral URL for specific Analytics user
- Originating traffic category for that user (like 'Google / organic' and so on)