Tracking a subdomain separately in Google Analytics - google-analytics

So I've been trying to set up Google Analytics to track site's (Tumblr) blog separately from the rest of the site, but I've been having no luck. All of the tutorials online seem to be outdated, and Google's own help center isn't helping.
Can someone please help. I tried messing with filters, but simply can't get it to work.
The website is sitename.com and the blog is blog.sitename.com. They both share a tracking code.
Thanks!

Create an a custom include filter on the hostname:
on one profile, include only ^www.domain.com$
on another profile, include only ^blog.domain.com$
Beware that e-Commerce transactions can't be filtered by hostname but only by transaction ID
I encourage you to keep a 3rd profile without filters, to be able to check that you don't miss anything.

Create two Analytics profiles, one for each site. Then put their respective tracking codes on each site.

Related

How to link Google Analytics account to wordpress

I have read multiple tutorials on web but I'm unable to find my tracking I'd/code on my Google Analytics property list. This is the image which I got from web and I want to see m Any help will be appreciated.
You can simply use any plugin out there. Here are some of my favorites:
Google Site Kit. <== This is the official Google Plugin
MonsterInsights
ExactMetrics
GA Google Analytics <== Simplest and just for this purpose. No unnecessary code.
Note: There are many others but these are per my favorites list and liking.
1st plugin will auto-connect with your google account and you won't need to put any ID or code into your site manually. Hence easy to set up.
Site Kit by Google is great for WordPress users. By using Site Kit you don't need to manually insert the code, as depicted by the screenshot you share. The plugin can insert the code for you.
In addition to the placement of code, Site Kit can show you Analaytics and other data within your wp-admin dashboard!

Track count of views,likes and comments in a community site

Can anyone tell me how can I track number of views,likes,comments and shares in a collaboration and community site. This is not a Google site. This site was created using lumapps. It's a collaboration site, Which works similar to Google+, where you can write a blog, post and like/ share the same. I need a way of keep tracking the likes/shares/views on such posts or blogs, So that I can display the same in Google data studio.
I heard it's possible using Google tag manager. Can anyone confirm this OR let me know about anyways of achieving the same.
Thanks and Regards
Kumar
You would do this by sending an event to Google Analytics and using this source in Data Studios.
Please see reference on how to send events using Google Tag Manager and custom Variables.
https://support.google.com/tagmanager/answer/6106716?hl=en

Google Analytics - only track traffic to a folder of the site

I want to track traffic for mysite.com/current-campaign/ and careless about traffic on mysite.com in general.
Is it ok to place the GA tracking code in the files inside the /current-campaign/ folder or does it HAVE TO be in the root of the server for tracking to work?
GA will only track on the pages you actually put the tracking code on, regardless of where the page is located (unless you start messing with things like domain settings or filters etc..).
So IOW yes, it is okay to do that. If you don't have tracking code on mysite.com/somePage.html then it's not gonna track that page (though it might show up as the URL in some reports like referring URL or exit link or whatever, same as any other page you don't track)
In Google Analytics, you can add a filter to the profile and filter all but the chosen directories. Go to Analytics Settings > Profile Settings and look for "Add Filter" link.
In addition to Crayon's answer, you can limit tracking to a subdirectory by using _setCookiePath() function in your tracking function. See Analytics documentation on single subdirectory (note the link anchor is not resolved to a correct header, at least for me).
This is advised in the documentation to use when you only want to track a subdirectory and avoid clashes with Analytics trackers possibly in use in other subdirectories.
I work for a department in a large university.
The department's web page resides at www.some-uni.com/department-name/.
I only have FTP access to the sub-folder /department-name/ and nothing else on the site.
It was quite easy to get Google Analytics to track traffic within the subfolder /department-name/, ignoring the rest of the site. All I did was create a profile in GA, setting the default url to www.some-uni.com/department-name/. I then pasted the tracking code into the pages I wished to track.
It took about eight hours for anything to show up in GA, but after that it worked just fine.

Google Analytics on non-public pages

Is good to place google analytics in pages like admistration, article edit page, ... ?
The reason why I use Google Analytics is to give important information to my clients about how their websites are being used. Because of that I wouldnt include the admin area of the website because it doesnt affect their sales or conversions.
By adding code into the admin zone you are inflating the total pageviews. If you really want to track this information then its not a disaster, you would just need to be sure to setup a profile which filters out these urls when making business decisions with your Analytics info.
Technically I think to use Google Analytics it is supposed to be on a free, public website but I guess having some of the pages locked isnt going to get your account closed.
Yes, it keeps stats on how often you or others use admin features. I also suggest that you use Google webmaster tools on them too.

Google Analytics--My second profile to an existing domain not tracking

I created a second profile to my Analytics account to track SEO keywords. This is a second profile for my existing working domain. It has been 4 days and I still do not see any traffic on this secondary profile. The profile shows a Staus of "Unknown". But I do not see a way to validate it like you have to when you create your first profile and this should not be necessary for a profile to my existing domain. Any ideas what I am missing? Thanks!
Just had the same problem. This solution worked for me.
Click Edit beside the profile that
is giving you problems.
On the upper-right of the page click
the Check Status link
This should jump-start Google Analytics.
Solution found at:
http://www.inficone.com/technology/a-solution-to-google-analytics-tracking-unknown-problem/151/
Without much info, here's what I can offer:
Why is Google Analytics not tracking some of the pages on my website?
Or contact Google Analytics.

Resources