Yoast: Nieuw op Marketingfacts: Siteclinics door @davidbrinks, @chapter42, @merchandise, @arjansnaterse en @yoast - http://t.co/2YFKHK5K
![]()
Google Analytics for WordPress gets a debug mode
With the wider introduction of the ga_debug.js script (Google Analytics Certified Partners had had access to that for a while so I'd been using it already); I finally had the chance to add a real debug mode to my Google Analytics plugin.
Since the debug script uses the console to display its information, I also added the option to immediately load Firebug lite. See how it works in the following screencast (ow and enjoy my new screencast intro, I'll be doing loads more screencast in the coming months):
Please enable Javascript and Flash to view this Blip.tv video.



by Andrew on 26 August, 2010 at 15:22
Hi Joost,
Thanks for the update, but why have you started using apostrophes so widely? Get's instead of Gets?
Your post yesterday was edited by the time I got to the site and I think this is the third in a row that you have had to change.
Are you farming out your blog posts?
I am not being picky, it's just that your English is usually so flawless that it really hits me when I see you repeating this error.
by Joost de Valk on 26 August, 2010 at 22:21
Fixed, thanks, my english is failing me and yes I'm typing my posts faster than usually ;) Just a lot to do and a lot to say :)
Pingback: Google Analytics for WordPress krijgt een debug modus | Jestersoft - Software Engineering
by Ed on 26 August, 2010 at 18:35
Nice work. Thanks Joost.
Might we expect screencasts in a format other than Flash in the future?
by Joost de Valk on 26 August, 2010 at 22:21
Yeah I'll add a download link, there's a .mov out there as well, and I'll try to do iPhone versions too.
by cameron on 26 August, 2010 at 22:18
Help. I set up GA with Google and got one user id and then with your plugin, just to be sure.
I installed the id in the header of each post, per your instructions.
GA now says I have a different id than the one they originally gave me, and they say it should
be installed once on in the theme footer.php, not the header of each post. I've been getting
wildly divergent stats for Google Analytics and WordPress stats. If I have GA set up separately,
should I uninstall your plugin? Many thanks.
by Joost de Valk on 26 August, 2010 at 22:20
Which site? This is the asynchronous tracking code, and yes that should go in the header, not anywhere else. And installing GA separately is useless :) Just use this plugin, the video explains why: Google Analytics for WordPress.
by Eyal Sela on 27 August, 2010 at 20:24
I think Google's new plugin - Google Analytics Tracking Code Debugger - Google Chrome extension gallery has the same functionality
by Joost de Valk on 29 August, 2010 at 22:02
It has, but well, not everybody uses Chrome ;)
by cameron on 27 August, 2010 at 23:17
Thanks! Any chance you can take a look at the code for my site and tell me if it looks ok?
If I already have
an installed GA account with Google, will it mess up if I also install GA for WordPress?
Since I couldn't locate the 'header' for the theme that I'm using, Atachualpa, i pasted the code
on each post and page at the top. The theme gives an HTML and a Visual option for posting,
but does not show the HTML. So I can only assume that I'm pasting the GA snippet correctly.
Can't thank you enough for your time.
by Michael Visser on 28 August, 2010 at 05:28
Hi Joost,
I added several lines to get e-Commerce Tracking working with WP e-Commerce; they are below for line #1145.
$sessionid = $_GET['sessionid'];
$cart_log_id = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `sessionid`= " . $sessionid . " LIMIT 1" );
by Joost de Valk on 29 August, 2010 at 22:02
Yeah still working on that. In some versions it works, in others it doesn't... Shopp works fine though :)
by Michael Visser on 29 August, 2010 at 23:44
Hi Joost, looks like the Core WP e-Commerce team are working around your Plugin :)
https://code.google.com/p/wp-e-commerce/issues/detail?id=115
Pingback: Best Google Analytics Plugins for Wordpress
by Paul on 30 August, 2010 at 19:11
I have one hint for you: Can you change in your plugin display_name into user_login? If two users have the same Display Name in frontend, the are tracked as one. The user_login (username) instead is unique and can be taken.
Hope you understand me :)
by Joost de Valk on 30 August, 2010 at 19:15
hmm good idea but that would have to be an extra option, let me think about it.
by cameron on 30 August, 2010 at 23:39
where do I find the GA results? GA for WP has been installed and activated. What next?
Pingback: AdWords and Analytics
by rajee on 4 September, 2010 at 00:35
should I enable debug the mode for firefox in your Google Analytics for WordPress plugin. I used your plugin for Google Analytics for WordPress in my blog, http://momsfocusonline.com It doesn't show up Pls help
by Joost de Valk on 4 September, 2010 at 07:54
It's showing up just fine, might be that it's hidden for you because you're logged in? But even in that case you should see a message to that effect.
by Joost de Valk on 4 September, 2010 at 07:55
You do have the tracking code three times now though, once added by my plugin, once through the theme (I guess...) and once through Ultimate Google Analytics. I'd get rid of the last two :)
by rajee on 4 September, 2010 at 08:54
Thanks for your response. I don't know how it will show up. Do you have sample website that is used
your plugin to show up. Do you want me to get the rid of the last two? If yes, then please help how
to get rid of the last two. I don't know whether it's worth to have the last two.
Where can I find WordPress 4.0.9 version to download?
by Joost de Valk on 4 September, 2010 at 08:55
Maybe you should just hire someone to do this for you :)
by rajee on 4 September, 2010 at 17:34
I like to learn. I couldn't find the latest version of wordpress. If I know, then I can do it now itself.
Can you please help?
by Joost de Valk on 4 September, 2010 at 21:19
Well I like helping, but unfortunately lack the time to do that for everyone... You might ask for support in the WordPress support forums, there are people there who'd be glad to help.
by rednimer on 10 September, 2010 at 05:37
Hi Joost,
Great plugin. You have done a lot of work to it, and always quick to fixt things, which is great.
Anyway, I am trying to use the plugin and also track search traffic from google images. I found some standalone analytics code that is supposed to work pretty well, like this
try {
var pageTracker = _gat._getTracker("UA-123456-78");
var ref = document.referrer;
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) {
var regex = new RegExp("images.google.([^\/]+).*&prev=([^&]+)");
var match = regex.exec(ref);
pageTracker._clearOrganic();
pageTracker._addOrganic("images.google."+ match[1],"q");
pageTracker._setReferrerOverride("http://images.google." + match[1] + unescape(match[2]));
}
pageTracker._trackPageview();
} catch(err) {}
But I really like using the plugin. Is there a way to track the google image traffic while using your plugin.
Thanks
rednimer
by dekan on 23 September, 2010 at 05:55
please help me. this is error:
Fatal error: Call to undefined method WP_Error::get_items() in dennykalangi.com/www/wp-content/plugins/google-analytics-for-wordpress/yst_plugin_tools.php on line 196
could you help me?
by Kelly on 23 September, 2010 at 23:10
Hello Joost,
I was recommended your plugin from a developer friend and after checking it up I was impressed with all the great features it offers.
I installed it and after I authenticated with Google and then click the updatebutton I got the following error:
Fatal error: Call to undefined method WP_Error::get_items() in /homepages/29/d239170245/htdocs/wp-content/plugins/google-analytics-for-wordpress/yst_plugin_tools.php on line 196
The plugin version is 4.0.9. I am using WP 3.0.1 with Thesis theme version 1.8.
Thanks for your help!
Kelly