www/159634: [patch] add Javascriptt
Eitan Adler
lists at eitanadler.com
Tue Aug 9 18:40:09 UTC 2011
>Number: 159634
>Category: www
>Synopsis: [patch] add Javascriptt
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 09 18:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Eitan Adler
>Release:
>Organization:
>Environment:
>Description:
Index: header.ent
===================================================================
RCS file: /home/ncvs/www/share/sgml/header.ent,v
retrieving revision 1.16
diff -u -r1.16 header.ent
--- header.ent 27 Mar 2011 11:28:34 -0000 1.16
+++ header.ent 9 Aug 2011 18:28:46 -0000
@@ -79,6 +79,30 @@
]]>
<!ENTITY header1.rsslink ''>
+ <!ENTITY header1.google "
+ <script type='text/javascript'>
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22767463-1']);
+ _gaq.push(['_trackPageview']);
+ _gaq.push(['_setCustomVar',
+ 5, // use the last index in case we just don't care ;-)
+ 'Real Operating System',
+ navigator.platform,
+ 1 // Lets track this by 'visitor' (per cookie). If we need more
+ // fine grained data we could always change it later
+ ]);
+
+ (function() {
+ var ga = document.createElement('script');
+ ga.type = 'text/javascript';
+ ga.async = true;
+ ga.src = 'https://ssl.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+">
+
<!ENTITY header1 '
<head>
<title>&title;</title>
@@ -86,6 +110,7 @@
&header1.link;
&header1.rsslink;
<script type="text/javascript" src="&enbase;/layout/js/styleswitcher.js"></script>
+ &header1.google;
</head>
'>
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list