Making Sure my Google Analytics Views are Set Up Properly - google-analytics

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!

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.

I'm unable to run experiments accross subdomains using Universal Analytics

I'm currently running an experiment without redirect, using Google Analytics, but I'm running in some issues.
The case
I work for a company that has two websites, with two separate brands, selling the same product. Today, we are plaining a merge of the brands, one of the reasons being the low costs of maintanance.
To see how this would affect sales, we are doing an a/b test. The test consists of changing the logo of the sites, and displaying an information about the merge of brands in the variant. The original is the website without changes.
We have some requirements to do it:
We use a CMS that has no support to the Google Analytics Experiment tag (we get some errors when we install it to the , and are unable to run it)
We need to run it through all pages of our websites. We have also a subdomain in each site, that the user is redirected to place an order.
We doesn't have time to wait for the experiment to end for itself. So, we came up with the idea to track the rejection and sales using a duplicate pageview with "/variant" in the url and in the title.
To do that, I used the Content Experiments without redirects, with the Google Tag Manager.
Configuration of the Experiment
In Google Tag Manager, I load the Content Experiment Javascript API and define the choosenVariation variable in all pages of both websites and subdirectories.
I track the "gtm.load" event, to see when the page finished loading all elements and change the DOM in three ways: changing the logo, adding the content about the merge and add an item to the main menu. All of this, through Javascript.
Along with the changes of the DOM, I add a datalayer called VirtualPageView, and pass the corresponding url with "/variant" and the title with "Variant".
When the datalayer fires, I send a new Pageview with the variant information.
The problem
The experiment is running right, but when a user gets the B variant of the experiment and procceed to a subdomain of our websites to place an order, it seems that it's somehow running another test, and happens to the user get the A variation.
We are trying to persist the original session and the client Id through the domain and subdomain, in order to the user that saw the different logo, continue in his way to order.
I saw this page about Running Experiments across Subdomains, but its about the Classic Analytics and the classic experiment, and we are using the Universal Analytics with the Content Experiment without redirects.
I don't know if my explanation was clear enough, so if someone have doubts, please ask me. I don't have a profound knowledge of Google Analytics or the Content Experiments either. So, if you have a better way to do this, please, tell me.
I came up with a solution to our problem. We agreed to use the experiment only in the pages of the main domain, so I can change the content otherwise in the pages of the subdomain:
When a user visits our main domain, through Google Tag Manager, I created a cookie that says what the result of the variation chosen for the user (0 for the original and 1 for the variation).
When this user goes to our subdomain to place an order, still via GTM I check the cookie to see its value. If its equal to 1 (a variation), I change the logo and the menu, according to our previous configuration, and I send a virtual pageview to help us check the data.
Until now, this is working properly.

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

Google Analytics, iframes & cross-domain

I have GA on every page on one domain (actually not me, but my company, whose programmer needs auditing). Just the default code (Classic version, ga.js), no special accommodations whatsoever that I've seen or know of. Bare minimal if any configuration past registering the service with the main site...
All the pages are either aspx or static HTML. It's common practice for this guy to embed pages on the site within other pages on the site in iframes, where both the parent (top-level) & child (embedded) pages contain the GA script.
I don't really know much at all about GA, have never worked with it, but I do suspect that might result in extra hits being counted by GA or something, that that may be messing with the metrics. But then I've read stuff about GA using first-party cookies so by default pages loaded in iframes won't be tracked/counted... I could really use some clarification on this, please.
Then our programmer frames pages from the main site in pages on other sites that we own, that are on different domains. So then there's this cross-domain business, with no segregation of sources, because they really don't care much. So what should be the outcome of that? The external sites' pages don't have the GA code.
However, we're rebuilding one of those other sites - actually I am, for the most part - and the programmer told me to just copy and paste the same exact GA script used on the main site into that one. So, it's a different domain. That wouldn't work as-is, would it? Wouldn't there have to be some sort of special configuration, setting of the domain, something?
I'd really appreciate if someone could tell me more about the scenarios described above. Thanks in advance.
In the Google Analytics developer menu, you can create a new 'profile' for this new site. The analytics will then be tracked for just that one site, not for all. In theory, it is possible to use one GA.js for all your sites, but it kind of kills the whole concept of Google Analytics, so it's not recommended.
Your really shouldn't be using iframes anymore IMO. There are reasons to use them like embedding code for tracking etc, I think, even GA uses iframes. But, generally Google doesn't like them because a lot of spammers use them to try and fool the Google Crawler.
Also, it get's very complicated to understand what is going on within GA.
To answer your question: Each iframe is like an independent webpage completely separated from the other webpage (for security reasons). So when Google or a web browser goes to your website it will do this:
Load your main html document.
Render that page.
See that you have an iframe.
Load that page in the iframe.
Render the iframe.
Now, if you don't have GA installed on the iframe page it will not track the page being loaded.
But if you do put GA in the iframe it will record when the iframe is loaded or the webpage is loaded.
But, remember that one of the main reasons of having GA is to see where your customers are coming from and why. If you have an iframe of another webpage, you really don't know if that is because a customer is:
A) visiting your website from the page directly.
OR
B) the customer is visiting that page through an iframe on another page.
It can get very complicated
You must generate a new tracker for each domain you are using. Otherwise what is to stop someone from just copying your GA code, and putting it on their webpage.

Google Analytics not tracking directories correctly

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

Categories

Resources