Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple links pointing to the same location. Track which one was clicked using Google Analytics

I'm trying to get Google Analytics to track the specific link in the page that was used by the users to get to a specific location.

Say I have links poing to the contact page from the main menu, the page's contents and the footer.

Looking at what other websites are doing, I've added references inside GET parameters for each of the links like so: http://www.example.com/contact?ref=menu , http://www.example.com/contact?ref=content and http://www.example.com/contact?ref=footer . I've also added the ref parameter to the ignore list inside Google Analytics so the three URLs are not tracked as separate pages.

My question now is: How sould I go about tracking which one was used to get to the contact page?

like image 909
titel Avatar asked Jan 18 '23 21:01

titel


1 Answers

Although the post is a bit old, for others like me finding this via search, here is the solution. Enhanced Link Attribution in Google Analytics.

http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867

like image 58
Jared Fine Avatar answered May 02 '23 09:05

Jared Fine