C
C
cheiwe2017-04-03 07:14:42
Search Engine Optimization
cheiwe, 2017-04-03 07:14:42

How to configure Google Analytics for mobile version via a parameter, not a subdomain?

Good afternoon! Can someone locally help me and give me the exact step-by-step instructions on how to set up a Google Analytics profile for the mobile version of the site, given to the user by the parameter, and not the subdomain?
There is a site, if you choose to view the mobile version, then the path in the address bar does not change. Google Analytics is configured before it and works, but it sees all traffic without an exact division into which version is given to the user.
Not to be confused with mob. traffic, because this report speaks more about the traffic source than what version was displayed.
How to set up tracking specifically mob. versions?
Where should this parameter be set?
Do I need to create a separate profile or can I customize an existing one?
It is possible in details for dummies, otherwise Google and the Internet help, they do not give any specifics.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Bukei, 2017-04-13
@maxgabba

Hey!
It is necessary to use a custom dimension and pass it on each page or when switching from version to version.
Approximately in this form, adding to the general GA code:
ga('send', 'pageview', {
'dimension5': 'Site type'
});
More about it here https://developers.google.com/analytics/devguides/...
At the same time, the Site Type shown to the user takes one of the following values:
"mobile" - version for mobile phones / smartphones;
"tablet" - version for tablets;
"desktop" - classic site (access via a standard computer).
The dimension number can be different - it depends on the settings you make in the GA interface
You need to go to the administrative part of GA, add a new custom dimension, select the action level for it (in your case - session or hit).
If you select Session, then the data will be according to the last value sent in the session, and it will be necessary to transfer when switching from one version to another.
If you select Hit, then the data will be transmitted and stored for each page independently, and it will be necessary to transfer it from each page, otherwise it will be (not set) in the report.
More details here support.google.com/analytics/answer/2709828?hl=en The
report can be viewed by adding a secondary dimension to any report you need, the name of this variable is determined when creating a custom dimension.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question