r12 - 17 May 2008 - 02:21:00 - MarcusLeonardYou are here: TWiki >  Plugins Web > GoogleAnalyticsPlugin > GoogleAnalyticsPluginDev
Tags:
, create new tag

GoogleAnalyticsPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on GoogleAnalyticsPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on GoogleAnalyticsPlugin

-- ArthurClemens - 21 Sep 2006

Thanks Arthur for sharing plugin package number 239 with the TWikiCommunity!

I made some small changes to the plugin topic, please feel free to take tis back into the next release:

  • Fixed Google link (http, not https)
  • Note in installation instructions
  • Right aligned cells in info table
  • Additional rows in info table

-- PeterThoeny - 21 Sep 2006

I also added the package form; make sure they contains values you want.

Help tag the plugin topic.

-- PeterThoeny - 21 Sep 2006

Possibly add some explanation what Google analytics are, and why a TWiki administrator would want to install the plugin.

-- PeterThoeny - 21 Sep 2006

I added also a SHORTDESCRIPTION since the description was missing in the PluginPackage index page.

-- PeterThoeny - 21 Sep 2006

Thanks Peter. I've added a small description about GA. Could be expanded at a later time.

-- ArthurClemens - 21 Sep 2006

I just installed this plugin and the Google analytics website is saying I don't have the code installed on my pages. Any ideas? One thing I notice is that the inserted code isn't quite the same as what their website is saying I should insert. Does the plugin need an update?

-- JeffersonCowart - 13 Jun 2007

  1. Did you insert your own code in the plugin preferences?
  2. Is that code valid for the web you are viewing?

-- ArthurClemens - 13 Jun 2007

I had the same problem as JeffersonCowart and figured out two issues.

  1. At the first time, I just wrote down the root address(eg. http://example.com/) into Analytics settings since my site has .htaccess redirection for /index.html. But it seems Google Analytics does not handle properly this redirection when checking status. So I had to specify an original address(eg. http://example.com/Main/WebHome). Note that I'm also using shorter URLs.
  2. My twiki.conf which was from automatic generator found nearby contained "BrowserMatchNoCase ^$ blockAccess" which prevented Analytics bot from accessing above address. It does not have a user agent name. So I commented out the very line.

And now it seems to work. Hope it to help your case as well.

-- KyungdahmYun - 15 Jun 2007

It looks like I had the same problem as KyungdahmYun. The base URL did a 30x redirect. It looks like Google's Analytics checker doesn't properly follow such a redirect. By giving them a detailed URL, I was able to get it to confirm it was installed.

-- JeffersonCowart - 15 Jun 2007

See also an alternative solution using skins and templates : UsingGoogleAnalytics

-- OlivierBerger - 22 Jan 2008

Newer Version of the Google Analytics Tracking Code

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unes<nop>cape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
</script>

-- RickGuardia - 17 Mar 2008

In above verbatim text, remove the <nop> from the unescape function call.

(I am posting above note for Rick, he was caught by the JavaScript spam trap.)

-- PeterThoeny - 17 Mar 2008

Thanks for posing my "suspicious" comment Peter. Has anyone updated this plugin to use the new google analytics tracking script posted above ? It looks like it would be failry easy looking and the GoogleAnalyticsPlugin.pm file. I would do it but I do not have the programing skills ...

-- RickGuardia - 17 Mar 2008

I reported a support issue on topic CantLocateObjectMethodfindUser on 4.2

The message is "can't locate object method "findUser" via package TWiki::Users at pluginname_installer.pl line 562." The code at that line is $twiki->{users}->findUser($TWiki::cfg{AdminUserWikiName}, $TWiki::cfg{AdminUserWikiName});

Peter referred me here with this comment....
It looks like those plugins use functions other than the documented TWikiFuncDotPm. Post this in plugin's Dev topic or file a bug report for each plugin. -- PeterThoeny - 06 Apr 2008

Is this a simple thing or will it take some time to implement?

-- JimCrum - 07 Apr 2008

Thanks to KyungdahmYun above for the BrowserMatchNoCase ^$ blockAccess hint. Drove me nuts...

-- MarcusLeonard - 17 May 2008

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r12 < r11 < r10 < r9 < r8 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo