[dokuwiki] Google Analytics plugin

  • From: "Terence J. Grant" <tjgrant@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 20 Aug 2006 16:21:14 -0400

Hey guys, new plugin:

http://tatewake.com/wiki/projects:google_analytics_for_dokuwiki

May be of some interest to devers since it uses the concept of "plugin
that exports code for use in template", thought it's not as simple as
a one line "if fn exists call fn" like I had hoped, but close enough:

<?php
if (file_exists(DOKU_PLUGIN.'googleanalytics/code.php'))
include_once(DOKU_PLUGIN.'googleanalytics/code.php');
if (function_exists('ga_google_analytics_code')) ga_google_analytics_code();
?>

--
--Terence J. Grant(tjgrant@xxxxxxxxxxxx)
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: