--
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
- Did you insert your own code in the plugin preferences?
- 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.
- 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.
- 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
Maybe my questions is obvious to others but I want to be sure this plugin can safely be used on an intranet TWiki and nothing will somehow be sent to Google. Is it correct that there is no Google interaction?
--
IngoKappler - 27 Aug 2008
This plugin hasn't been updated since 2011, so probably no one monitors this development page anymore. Just in case: Google has changed their analytic tagging to a new scheme they call GA4. I edited my copy of
GoogleAnalyticsPlugin.pm to reflect the following new tagging script:
my $html = <<END;
<!-- GOOGLEANALYTICSPLUGIN --><!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=$key"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '$key');
</script>
END
--
TWiki Guest - 2022-05-31
Thanks TWiki Guest, we'll update the plugin.
--
Peter Thoeny - 2022-06-01