Currently I use utm_source and utm_medium and I capture those info using hidden fields. Those work great with external linking and custom campaigns.
What I want to do is to capture the traffic source and medium not from external campaigns to the landing page, but from our own website in the same domain. Is there a script for traffic source and medium similar to capturing the referrer data in unbounce documentation? Does anyone know where I can get that?
Ideally, when the script is implemented, traffic coming to the main website will be passed on to the landing page. So if someone entered our site via (direct) traffic, organic search, or referral, and ended up signing up for our service on an unbounce landing page, that traffic source/medium will be captured on the form.
Here’s a link that I’m currently using that may be helpful for this: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#trafficsour…
Please help! Thanks!