I
I
inferer2012-08-21 12:20:41
Google Analytics
inferer, 2012-08-21 12:20:41

How to set up Google Analytics to track mobile traffic?

Our project has a main domain and a subdomain for mobile traffic "m." Visits from devices with a screen resolution of less than 1024x768 are automatically redirected to mobile versions of pages on the “m.” subdomain.
We want to see general analytics for the project including (regular + mobile traffic), so we put the same GA code on regular and mobile pages. At the same time, traffic analytics from the "m." want to see in a separate profile. Most likely, it is possible to set a filter to take into account only traffic from a subdomain, but it was not possible to figure it out on our own.
Anyone who has experienced this, please let me know. how did you decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
max_rip, 2012-08-21
@inferer

  _gaq.push(['SecondTracker._setAccount', 'UA-XXXXXXX']);
  _gaq.push(['SecondTracker._trackPageview']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question