Google Analytics not tracking directories correctly - google-analytics

I have an issue with setting up Google Analytics for a domain with several directories. Here is what I have:
www.mydomain.com
www.mydomain.com/site-one/
www.mydomain.com/site-two/
www.mydomain.com/site-three/
www.mydomain.com/site-four/
www.mydomain.com/site-five/
Each of these directories are effectively separate websites, but they all come under mydomain.com. My issue is that I've set them up so that mydomain.com is the main account, with site-one, site-two, site-three etc each being a property under that account.
For each of the properties, I have the relevant url. For example:
For the mydomain.com/site-one/ Default URL I have set it to http://www.mydomain.com/site-one/
What I've noticed is that since doing this, I only seem to be getting visits tracked on mydomain.com, but none of the sub-domain properties.
I'm sure there is probably something I'm not doing right...so if anyone can help I would really appreciated it.
Thanks

Not totally sure what you exactly want to achieve, you want them all in one report or in different reports? anyway i think this is what you want.
Edit the profile number for each site.
www.mydomain.com UA-12345678-1
www.mydomain.com/site-one/ UA-12345678-2
www.mydomain.com/site-two/ UA-12345678-3
www.mydomain.com/site-three/ UA-12345678-4
www.mydomain.com/site-four/ UA-12345678-5
www.mydomain.com/site-five/ UA-12345678-6

You may need to ad _setCookiePath() to your GA call within <head>.
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#singleSubDirectory

Related

Still getting data on Google Analytics after changing domain

it's a weird question.
Here is a wordpress website whose original url is https://funXXX.com
I made a new website for displaying products which use the url https://funXXX.com
And the original web is changed to be a store web and change its new url is https://store.funXXX.com
A weird thing happened,
The dashboard is still showing infomation... and track the traffic of https://store.funXXX.com
There is also conversion rate.
However, in the setting page of GA, the url is still the old one https://funXXX.com
How I set GA for my new website?
I know the whole thing is really weird, I will keep editting and replying if someone is helping me. Thanks!
The URL you enter in the view settings has no influence on the data collected in Analytics (it is only used to preview pages, but on a practical level it has no impact).
If you want to limit the data to a specific domain you need to apply a filter based hostname to the view.

GA Cross Domain Tracking for subfolders with different UA-ID

Our site is broken down into 4 main subfolders lets say www.site.com/a/, www.site.com/b/, www.site.com/c/ and www.site.com/d/.
Each of those subfolders has a different Google Analytics tracking account because we treat those subfolders as different divisions.
We want to be able to track clicks from www.site.com/a/mypage.html to www.site.com/b/yourpage.html.
Because they have different tracking codes the clicks between divisions don't carry over between GA accounts. So when the page www.site.com/b/yourpage.html has stats the referrer is {not set} and the previous page path is set to {entrance}, even though they should be www.site.com/a/mypage.html.
It was suggested, during the creation of our GA accounts to put our domain site.com in the Referral Exclusion List to avoid new sessions being created but I'm wondering if this is what is causing the clicks to not detect the previous page or referrer page, because we are excluding it.
Can anyone help me figure out how I am going to track these stats?
Is using cross domain tracking an option, even though we're not changing domains?
Any help on this will be a big help. TIA
The exclusion from the referral is certainly what makes the direct traffic result, however it is correct that it is set like this. The main problem is that track the same site by dividing the sections into 4 different Analytics Properties is not a good practice.
Cross-domain tracking will not work because they are different Properties (unless you have GA360).
However you can get what you need by using the UTMs parameters on the links, for example for a link from site A to site B you will have to write the URL of the link like this:
www.site.com/b/yourpage.html?utm_source=fromA&utm_medium=referral
In reports you will see these values ​​in referral channel with the defined source instead of direct traffic.

Making Sure my Google Analytics Views are Set Up Properly

I have a Google Analytics property for our University's main website - www.williamwoods.edu - and I am trying to set up a view for one of our subdomains.
We have one set up already for our News site - news.williamwoods.edu. This new one is going to be for our University President's personal blog - presidents-corner-blog.williamwoods.edu.
I've mimicked the setup for the News site for the Blog site, since the numbers for that site seem fine. It has our regular GA tracking code set on it and had the view set up in GA. I'm guessing that this is because we consider it a Property of the main williamwoods.edu domain.
The problem, though, is that the President's Corner Blog view doesn't seem to be reflecting specifically pages on the presidents-corner-blog.williamwoods.edu subdomain. If I go to Behavior, Site Content, All Pages while under this view, I can see URLs that reflect the structure of the main williamwoods.edu domain.
Am I using Views correctly? Should I set them up differently? Or, might it just take some time for the View to reflect the specific Subdomain associated with it? If it can be of use, here is how I have my views set up:
Any suggestions on how best to set up GA so that I can track traffic on the different subdomains would be greatly appreciated. :)
Thanks!

Best way to set up Google Analytics for domain, subdomain and subdirectories

I have a website with following domain and folder structure:
Main Website: www.ry.com
Subdomain1: mobile.ry.com
Subdomain2: speed.ry.com
Directory1: www.ry.com/mobile
Directory2: www.ry.com/blog
I have just started setting up Google Analytics for this and I am totally confused as to what are the best practices that should be followed? Should I consider them as individual properties or just 1 property. Should I be setting up a different GA code for each one of these?
Ideally, I would like to track all of it at one place but at the same time, using some filters be able to see the traffic on any one of the subdomains/subdirectories.
I started reading up about Universal Analytics but got totally confused and some of the posts were outdated as GA and UA seems to have changed significantly in the recent times.
Please advise me about how to set this up or point me to any good blogs or urls that are a rich resource.
This is one of the most complete answers I've found for this question.
http://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics

Web Site URL for analytics-tracking in a Spotify-App?

I want to track pageviews and userinteractions in a Spotify-app.
Spotify says it's possible: https://developer.spotify.com/technologies/apps/guidelines/integration/#usertrackinganalytics
Which »Web Site URL« do i enter when setting up a property for analytics-tracking in a Spotify-App?
Or am I doing it wrong and have to do it in another way?
It doesn't matter.
You can use a fake one if you will.
The only place where GA uses that is when creating links back from the reports to your website. Since your website doesn't exist, it's more like an extension from what I understand. Then you don't need those links anyway.
If feeling not-creative just use:
http://my-spotify-app.com

Resources