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):




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.
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 :)
Nice work. Thanks Joost.
Might we expect screencasts in a format other than Flash in the future?
Yeah I’ll add a download link, there’s a .mov out there as well, and I’ll try to do iPhone versions too.
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.
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.
I think Google’s new plugin – Google Analytics Tracking Code Debugger – Google Chrome extension gallery has the same functionality
It has, but well, not everybody uses Chrome ;)
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.
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" );
Yeah still working on that. In some versions it works, in others it doesn’t… Shopp works fine though :)
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
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 :)
hmm good idea but that would have to be an extra option, let me think about it.
where do I find the GA results? GA for WP has been installed and activated. What next?
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
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.
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 :)
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?
Maybe you should just hire someone to do this for you :)
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?
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.
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
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?
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