Blog

New Plugin: Google Analytics

Just this last weekend I was working on a Mura project and needed to hook into Google Analytics to get some metrics. So l did what any normal red blooded developer would do. Create a new account with Google Analytics, copy the Analytics js code that Google provides and pasted it into my Mura template right above the </body> tag. Very simple.

Then I thought, what about those people who don't quite understand HTML or JavaScript? Sure, they could get through it with a little trial and error, but for a CMS system that catered to both developer and non-developers alike, it's simply not ideal. Knowing this I went ahead and built a simple plugin that takes care of injected the JavaScript for you on a per-site level.

It handles the 3 common scenarios shown below. Each is definable within its respective field found within the plugin.

These scenarios are:

  • A single domain
  • One domain with multiple subdomains
  • Multiple top-level domains

If you need such functionality for you site click here to download the plugin from our Marketplace, then read up on how to use it by clicking the name of the plugin once installed.

Comments

Tony G

This will come in handy. I just wanted to let you know, though, that I downloaded it this morning from the app store and the download included the .svn directories. Also there were a couple of cfdump output="console" tags in the event handler component (manager.cfc)

January 26, 2010, 12:53 AM
Reply
Flag as Spam
Pat Santora

@Tony

Thanks Tony. I thought I cleaned those out. They should now be gone from the download.

January 26, 2010, 1:55 AM
Reply
Flag as Spam
Vance

has this plugin been taken down? 404 on link above.

September 22, 2010, 10:08 AM
Reply
Flag as Spam
Tony Garcia

The URL must have changed. But it's still in the App Store.

http://www.getmura.com/index.cfm/app-store/apps/google-analytics/

September 22, 2010, 11:56 PM
Reply
Flag as Spam
Jocuri logice

I'll be doing some upgrades real soon too, so I'll let you know if I run into any problems. In the meantime, I'd suggest opening a forum topic

October 4, 2010, 6:59 AM
Reply
Flag as Spam
Post a Comment

Required Field