Analytics
5.8K members online now
5.8K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Event tracking on a q&a modul with referrer

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi!

I have a website were people can ask questions. The site has two different points of entry. I am wondering if it is possible to find out were the people who ask questions enters my site from? 

 

Basically it will be an event triggered when people submit their questions, but the script from Google needs to pick the referrer where the user comes from and send it to GA.

 

Thanks for any help Smiley Happy 

 

Regards, 

Charlotte 

Event tracking on a q&a modul with referrer

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

To do something like this you could use event tracking but you will need to do some coding on your website and pass the referring page in the onclick or javascript function / implementation of event tracking. 

 

In PHP you can get this value with: $_SERVER["HTTP_REFERER"];