New Plugin: Google Analytics

Creating and modifying plugins.
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

New Plugin: Google Analytics

Post by kleinerChemiker »

You will say, why a new plugin for Google Analytics? A HTML nugget will do it? Maybe, but a HTML nugget won't track downloads and external links.

So, this plugin tracks external links and downloads and of course normal pages.

Download: http://blog.kleinerchemiker.net/index.p ... &thiscat=2

ToDo: utf8 and german translation
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: New Plugin: Google Analytics

Post by garvinhicking »

Hi!

Hey, that's cool. I like the xtra tracking, and indeed its useful. Just added to spartacus :)

Please tell me when you've done the german translation! BTW, I removed the last "?>" chars from your PHP files to prevent trouble on windows machines with editors.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Post by kleinerChemiker »

holt sich spartacus die files aus dem cvs von sf.net? falls ja, wenn ich da zugang hab, könnte ich ich das plugin dort aktuell halten.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Spartacus holt sich die CVS-Files, genau.

Wenn Du CVS Zugriff haben magst, gebe ich Dir gerne, dazu brauche ich nur deinen SourceForge.net Benutzernamen.

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Post by kleinerChemiker »

kleinerchemiker, so wie hier :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Super, hab dich hinzugefügt.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Post by technician »

I just installed this plugin however it's not inserting any code into the blog pages. I have added my account # and set it up according to the instructions but whenever I view source on a page I don't see any code relating to Google Analytics.

The plugin doesn't throw up any error messages, it says successfully saved and that's it. Any idea on why this is happening? Latest version of the plugin and the latest stable version of Serendipity installed.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Could you tell us your URL?

The analytics plugin is listed in the event plugins listing in your s9y admin suite?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Post by technician »

The URL is outerheaven.c-reality.com. I just checked and yes, it's listed under event plugins. I did have to install this manually as it wasn't letting me through SPARTACUS (I just copied the folder to /plugins and made it 777).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Just to be sure, you see the analytics plugin listed on the first page of the Event-Plugins admin panel - not on the follow-up page you see when you click on the link "Click here to install an event plugin"?

Plugins are installed using this link. Only copying it via FTP to your directory does NOT mean a plugin is installed; it just makes the plugin available for installation...

Another question: did you modify the index.tpl template file? It might be you (accidentaly) removed the required plugin hook.
Isee in your HTML output you have a

Code: Select all

<meta content="77KJeXwBSMZNNugxc3S+E1lcFRrBW+w8r8rCo69yyLM=" name="verify-v1" />
HTML field - how did you achieve that? By using a HTML Page Nugget, or by editing the template file?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
technician
Regular
Posts: 8
Joined: Wed Aug 23, 2006 4:00 pm

Post by technician »

Garvin,

I got it working. What I did was uninstall the plug-in from events first, then I removed the folder via FTP. I then went back in and re-installed the plugin from events using SPARTACUS. This time it went through without any errors and Analytics are working perfectly.

Honestly not sure how this all came about, perhaps it was permissions and then I just installed it incorrectly (you mentioned going through events to install even though I dropped it on the server via FTP, I don't remember doing that). Who knows, either way I appreciate the support. I am running HTML nuggets too BTW. Thanks again!
ormus7577
Regular
Posts: 122
Joined: Sat Nov 04, 2006 12:11 pm
Location: Ulm, Germany

Post by ormus7577 »

The plugin breaks xhtml validation for some external link tracking. I'll have a closer look, noticed it on a paypal link, that was tracked...
my installations:
family blog: http://familie.lobenstein.info/
personal blog: http://www.ormus.info/
OrmusTool Homepage: http://tool.ormus.info/
Online Adventskalender: http://www.ormus.info/pages/advent.html
ormus7577
Regular
Posts: 122
Joined: Sat Nov 04, 2006 12:11 pm
Location: Ulm, Germany

Post by ormus7577 »

no offense meant!

The problem occurs, when the tracked url includes an & (ampersand), which have to be escaped for xhtml.

Should be only a minor change, if you can't check it then I'll have a look.
my installations:
family blog: http://familie.lobenstein.info/
personal blog: http://www.ormus.info/
OrmusTool Homepage: http://tool.ormus.info/
Online Adventskalender: http://www.ormus.info/pages/advent.html
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Post by kleinerChemiker »

do you have an example? the plugin don't change the url, it only adds the js-code.
Post Reply