htdocs: add Google Analytics support.

Use IP Anonymization.
This commit is contained in:
XhmikosR 2013-08-01 10:35:52 +03:00
parent 7098fc6039
commit 8fd8398379
6 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-42882943-1']);
_gaq.push(['_gat._anonymizeIp']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

View File

@ -55,5 +55,6 @@ uninitialized variables, unused functions" />
<p><a href="/cgi-bin/archive.zip">Download all</a></p>
</div> <!-- .wrap -->
</div> <!-- #content -->
<?php include_once("../analyticstracking.php") ?>
</body>
</html>

View File

@ -89,5 +89,6 @@ void f()
<span class="br0">}</span></pre>
</div> <!-- .wrap -->
</div> <!-- #content -->
<?php include_once("../analyticstracking.php") ?>
</body>
</html>

View File

@ -169,5 +169,6 @@
?>
</div> <!-- .wrap -->
</div> <!-- #content -->
<?php include_once("../../analyticstracking.php") ?>
</body>
</html>

View File

@ -109,5 +109,6 @@ the latest sources in a zip or tgz archive</a> from the github website.</p>
</ul>
</div> <!-- .wrap -->
</div> <!-- #content -->
<?php include_once("../analyticstracking.php") ?>
</body>
</html>

View File

@ -155,5 +155,6 @@ which is oriented for this environment. A comparison of Cppcheck and PVS-Studio
</dl>
</div> <!-- .wrap -->
</div> <!-- #content -->
<?php include_once("analyticstracking.php") ?>
</body>
</html>