I have a website with http and https access. (http://www.mywebsite.com, https://www.mywebsite.com)
Also, I have another website under https://www.mywebsite.com/myapplication
I need to set up Google analytics tracking for these websites.
Can I go along with a one tracking code?
Or do I have to get 3 tracking codes (as the analytics)?
Yes you can use one tracking code, the host doesn't matter, just make sure you're using Universal Analytics and not Classic Analytics.
The best test is to try it for yourself and see that you get hits correctly from both hosts.
Related
My website is running a lot of test pages for specific purposes. Problem is I don't want to count these session and page views in Google Analytics, because we will have lots of false traffic. So I need to block these traffic data in Google Analytics.
Notice 1: Exclude IP filter won't work. We use VPN for these test pages. We also test it anywhere.
Notice 2: Custom Reports or Segment or anything are not recommended here. I know how to do this but don't want to do.
Notice 3: Website is Wordpress but I can't access to edit htaccess or to remove GA analytics.js.
Notice 4: I am able to use Google Tag Manager. Any Tag Manager tips are welcomed.
Thank you.
You should use Google Tag Manager and set up rules based on URL in triggers.
UPD In case of hardcoded GA, you can use custom filter in GA View: exclude traffic from Request URLs.
I have 2 properties, where each of them sits on a different domain.
The analytics work as needed per page view, but cross-domain analytics won't work. when looking at the cookies looks like the client id passes between the Properties
Using gtag and Followed this article,
https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain
When using Google Tag Assistant it seems that the source site sends tags as needed but the destination doesnt
To get cross-domain tracking the hits must be sent to the same Property.
The website is running on two domains, a.com and b.com. Both domains are running ga.js and bi-directional cross-domain tracking is in place. We would like start upgrading to Universal Analytics and keep using the same UA-code we are using now.
The problem is that we are only able to upgrade a.com to Universal Analytics at this moment. The other domain, b.com, will continue running ga.js with the current implementation and we are not able to make any changes to its tracking code.
Is there a way to make cross-domain tracking work between a.com and b.com when a.com is running analytics.js and b.com ga.js? If yes, what possible issues should I keep in mind?
This doc item seems quite clear that both a.com and b.com need to run analytics.js for cross-domain tracking to work, but this item about history import made me hope there might be a work-around:
Customizing ga.js history import
Additional configuration may be required in cases where cookie information needs to be transferred from a Universal Analytics cookie to classic Google Analytics cookies set by ga.js, such as with larger websites that have not completely retagged with analytics.js and have both tracking codes present for some period of time.
I don't quite understand what the latter says, though.
I am trying to make the google analytic __utm.gif request using php. I have broken all the variables and the only one which I don't know about is utmu parameter. It is not documented anywhere.
When I see a pageview tracking request it is appended to the end of request as &utmu=qB~
While doing ecommerce tracking it is appended as &utmu=qBAL~
Please help me with this.
It is a bitmap of all of the methods used to build the request.
Source: http://glucik.blogspot.com/2011/02/utmu-google-analytics-request-parameter.html
utmu doesn't actually contain anything of external meaning. Google uses it to store some internal values that help them improve ga.js. It's not required to make any functionality work, so, your PHP code doesn't need to account for it.
However, you should know there are already a few long-standing PHP-based Google Analytics projects, like Server Side Google Analytics (SSGA), as well as the semi-official Google Analytics for Mobile PHP and PHPGA.
is it possible use google analytics to track visits from nonbrowser application? will ga be able to recognize custom user agents or other http headers? Anyone has experience in this area? thanks!
No. Only browsers execute Javascript, which is required for Google Analytics tracking. To track robots, you need to get server side logs. AWStats is a good tool for parsing Apache logs, allowing you to track robots and such.