Just wondered if there is a known issue with GA having trouble tracking a site which has a Wordpress directory?
It seems to be able to track all of my other pages on the site, but we have a /news/ directory which is powered by Wordpress and it doesn't pick this up at all. It is obviously an issue with the fact that this directory is a Wordpress blog, but there must be a way to track it with all of the other pages.
Aaahhh... Sounds like the google analytics tracking code is present on your main site pages, but is not included in the wordpress template that's applied to that sub-section of your site.
The GA tracking code must be visible to google on every page you want to have tracked.
Try 'View Source' in your browser, and check wether the analytics tracking code is present.
If not, you could hard-code the GA tracking code in, or use one of the free WordPress Plugins to do it for you, like 'Google Analytics':
http://wordpress.org/extend/plugins/googleanalytics/
Hope this helps - post back if you're still having problems!
Rick
It may not be related, but did you check if your blog is indexable? Under Settings -> Privacy you can check if its enabled.
Another option is to install a google analytics plugin for the blog. If you enter the same credentials from your already-in-use GA it should be combined. I'm using this one on my blog and its working.
Related
I have a Wordpress website and have the Personal plan.
My goal is to implement the tracking code of the Google Tag Manager on each site.
When I am on the Wordpress site in the HTML view, I should be able to paste one tracking code as close to the opening <head> tag as possible on every page of my website but this is not possible.
That´s why I had a talk with somebody from the Wordpress Support team and their answer was the following:
I believe the code for Google Analytics is meant to go in the header of the site. Since WordPress.com is a fully managed environment, we don't have access to the header code.
Instead, we have a built in Google Analytics option available as part of the Business upgrade.
The issue is I don´t want to spend 25$ a month just to have Google Analytics integrated on my website. There must be also a way for somebody like me with a Personal plan to implement the tracking codes.
When I tried to implement them, they were not hidden on the website which should not be the case (because "hidden" is in the code).
Did anybody of you have the same issue like I am facing?
P.S.: There are also Plugins for Google Analytics but with my plan I can´t upload any Plugins. :/
I integrated the code on a text widget. It worked just fine. If you dont give title to the widget, its even completly invisible. so dont spend unecessary money
Here's what I did,
Installed Google Analytics by MonsterInsighs plugin on WordPress
site.
Authenticated and Connected the plugin to use corresponding Google
Analytics Property
I have not manually inserted any tracking code on my site. I am under the impression that the tracking code insertion is (and should be) the task of MonsterInsights plugin. With that strong supposition, I cleared the cache on Site CDN and Site Server to check if the tracking code is inserted. The three verification methods I used are;
Verification through Google Tag Assistant Chrome Plugin
Verification through Google Analytics Debugger Chrome Plugin
Manual Verification by Viewing Page Source
Ther are no errors in the plugin page. None of the methods have indicated the presence of tracking code. You can have a look yourself at https://techmars.org
PS: All of these activities are very recent i.e. It has just been an hour. Does it usually take some waiting? I haven't encountered such a prerequisite anywhere.
MonsterInsights automatically adds the tracking script. It appears to have done so on your site. The only time it would require waiting is if you were to use some sort of page caching that needs to clear for new frontend output tags to show.
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.
For some reason Google Analytics is appending index.cfm to the end of all of my URLs when I look at them in GA. The domain used to be ColdFusion based, but is now a WordPress PHP website running on an Apache server without ColdFusion installed.
We've added new pages to the website, and GA is still reporting an index.cfm at the end of the URL, even though that page never existed on the old ColdFusion site.
I didn't set up the GA account initially, is there maybe a setting that was enabled? Or does it take GA a while to figure out it's not a ColdFusion website anymore?
By the way, the website in question is http://www.westgatereservations.com. Thanks.
--ADDED--
Screenshot of page list from Google Analytics. All of these pages are WordPress PHP pages that use a clean permalink URL structure.
This is Google Analytics's 'Default Page' feature. If you go to the Account Settings and Edit the Profile Information, you'll see there's a field called "Default Page". It basically does what the theoretical filter I described above does: it automatically appends the default page (in this case, index.cfm) onto every page URL that doesn't have a page suffix. It's a shortcut, since most of the time, users want /foo and /foo/index.html to be counted as the same thing. But it totally breaks on WordPress and 'prettified' URLs, since they don't have a file suffix.
Just remove the Default Page (leave it blank) and the problem should be resolved. I'm not sure if it will be retroactive (Google Analytics rarely allows retroactive changes), but it will resolve the problem moving forward.
Read more about Google Analytics Default Page
I am using wordpress for my site. My site needs to add google analytics, favicon, meta keywords, meta descriptions. I searched plugin for this. I found different plugins for each. Can anyone suggest me a plugin which can add google analytis, favicon, metakeywords and meta description?
Any help will be appreciated. Thanks in advance
These are different functionalities and are properly handled by different plugins. Install the plugins you need. On Linux platforms, you can often just put the favicon in the sites root directory and not use a plugin.
As far as I know, the keywords and description meta tags are ignored by all search engines because spammers exploit the heck out of them. I suggest not bothering with them. However, if you still want to, read what the WordPress guys say.
As for Google Analytics and favicons, here are the plugins I recommend:
Shockingly Simple Favicon
Google Analytics for WordPress
Google Analytics Dashboard (Optional, but very useful. Shows an Analytics summary in your WordPress dashboard to save you time.)
Don't forget to also add a favicon.ico to your site root (even an empty one will do) to stop browsers from repeatedly attempting to retrieve it. (Don't believe me? Install any WordPress favicon plugin and then check your server logs.)
The favicon.ico in the site root will appear temporarily until the page has loaded enough for the <head> to be parsed and the new icon loaded, so I suggest not leaving it empty. Some sites (eg. deviantART) even take advantage of that to display different icons for "loading" and "loaded".