b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Mini Stats
  • Widget Manager »

Google Analytics code plugin

Categories: 2.x & above, 3rd Party Integration, Downloadable Plugin

Did your Google Analytics code survive your latest upgrade? Is it still there when you changed your skin? No worries anymore. This plugin will inject the Google Analytics code into every page in your blog, even in the Admin section. You will need to copy/paste the pageTracker code, formerly known as _uacct, to the setting of the plugin.

Important note: in most cases, since the Custom javascript section field is available, you won't need a plugin to use Google Analytics with your b2evolution blogs. For more information, please go to this page: Skin and Style Panel

Author@afwas
Last tested in version
Official page: http://forums.b2evolution.net/topic-15370

You can simply copy/paste you Google Analytics tracking code snippet into the appropriate field in b2evolution as explained in Setting Up Google Analytics.

Also, b2evolution's built in Website Analytics may be enough for you, in which case you don't need to set up anything ;)


  • Plugin page
  • Link to B2evolution forum post

If the Google Analytics tracker code is not present in source of your page, be sure the plugin trigger event is active. In you skin add in between:


<!-- footer ends here -->
   
<!-- wrap ends here -->

following code:


<?php
    // Trigger plugin event, which could be used e.g. by a google_analytics plugin to add the javascript snippet here:
    $Plugins->trigger_event('SkinEndHtmlBody');
?>

Tags: download file available

5 comments

Comment from: Slamp Visitor

Slamp

Works great with 2.4.2.
Thanks

2008-05-09 @ 23:58

Comment from: Ian Herrick Visitor

Ian Herrick

my site is a work in progres, but many thanks!

2008-06-28 @ 10:45

Comment from: Chris Visitor

Chris

This is broken in the 3.2.0 beta. The plugin is installed but the code is not injected anywhere.

2009-06-01 @ 19:54

Comment from: Wilson Visitor

Wilson

Works very well
Many thanks

2009-08-31 @ 11:52

Comment from: Alex Visitor

Alex

Is this plugin supposed to work with 1.10.x?

Seeing its code, I see that it relies on SkinBeginHtmlHead, which is also a part of the 1.10 API:
http://doc.b2evo.net/v-1-10/plugins/Plugin.html#methodSkinBeginHtmlHead

However, the plugin is marked as one for 2.x versions only.

Can you please shed some light on the subject?

2010-02-05 @ 23:54


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque