Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Track "Open New Tab" traffic in Google Analytics

I have a referral website that use an url to go to my website that have google analytics implemented. The referral sites open my website in a new tab on the same window when the user click the link.

I want to create a profile for each referral website so each profile have their own report about their user activity and transaction conversion.

I'm a newbie in google analytic, please give me advise how to track traffic for "open new tab" method.

like image 684
user1966025 Avatar asked Jan 10 '13 08:01

user1966025


People also ask

How do I track individual pages in Google Analytics?

The first thing you need to do is open up Google Analytics, and then go to the behavior tab. In the behavior tab, click on the site content, then content drilldown tab. Then, you simply need to click the search icon in the bar, and you will be greeted with analytics specific to that individual page/post.

Does Google Analytics track all traffic?

In addition to tracking the number of visitors, Google Analytics provides key insights into how your website is performing and what you can do to meet your goals. You can track everything from how much traffic your website is getting to where that traffic is coming from and how visitors are behaving.


1 Answers

You can track as far as a click using JavaScript. This means a standard click, a middle-click (which many people use to open in new tabs), and a right-click (which could imply using the contextual menu to open the new tab).

While we can't use the middle and right-clicks as solid conversion data (well, you could, but you wouldn't be absolutely correct), we can use these context clues to imply a user intent. Google Analytics custom dimensions really help this situation because we can assign those events as "Intents". Now, when you view your analytics reports, you can associate the intents with probable new tabs.

Here is a jQuery snippet that reflects this:

jQuery('a.some-link').on('mousedown tap touch', function(e){
    eventIntent = ( e.which >= 2 )? 'Intent' : 'Explicit'; //If the mouse button is greater or equal to 2, then set the intent (otherwise, it is an explicit click).
    ga('set', 'dimension3', eventIntent); //Change the dimension index to match yours!
    ga('send', 'event', 'Category', 'Action', 'Label', 'Value'); //Send an event so the dimension is tracked!
});

From there you could use your standard reports, or create a custom report along with custom segments to improve your insights.

For more information, I wrote a post about this subject and other events that you can associate with intents: here.

like image 169
GreatBlakes Avatar answered Oct 18 '22 19:10

GreatBlakes