My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
<tpl:WidgetName>Google Analytics</tpl:WidgetName>
<tpl:WidgetDescription>Include Google Analytics tracker</tpl:WidgetDescription>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker('{{tpl:WidgetText name="code" title="Code:"}}');
pageTracker._initData();
pageTracker._trackPageview();
</script>
Show details Hide details

Change log

r142 by olivier.azeau on Mar 30, 2008   Diff
templateWidget 1.0
http://barrejadis.azeau.com/post/2008/03/3
0/Extension-pour-Dotclear-2-%3A-creer-un-
widget-a-laide-dun-simple-fichier-
template-html
Go to: 
Project members, sign in to write a code review

Older revisions

r141 by olivier.azeau on Mar 30, 2008   Diff
templateWidget 1.0
http://barrejadis.azeau.com/post/2008/
03/30/Extension-pour-Dotclear-2-%3A-
creer-un-widget-a-laide-dun-simple-
fichier-template-html
All revisions of this file

File info

Size: 581 bytes, 11 lines
Hosted by Google Code