[www-doc] [Git][VideoLAN.org/websites][master] Update GA to the analytics library and Anonymize IPs
Jean-Baptiste Kempf
gitlab at videolan.org
Thu May 17 16:35:55 CEST 2018
Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites
Commits:
28495b79 by Jean-Baptiste Kempf at 2018-05-17T16:35:34+02:00
Update GA to the analytics library and Anonymize IPs
- - - - -
1 changed file:
- www.videolan.org/include/header.php
Changes:
=====================================
www.videolan.org/include/header.php
=====================================
--- a/www.videolan.org/include/header.php
+++ b/www.videolan.org/include/header.php
@@ -234,14 +234,14 @@ function start_head( $title,
<?php /* Analytics */ ?>
<script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-38853043-1']);
- _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);
- })();
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-38853043-1', 'auto');
+ ga('set', 'anonymizeIp', true);
+ ga('send', 'pageview');
function isTouchDevice() {
return 'ontouchstart' in window || navigator.maxTouchPoints;
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/28495b79350cbb445ca171f1d7774888ed519ce0
---
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/28495b79350cbb445ca171f1d7774888ed519ce0
You're receiving this email because of your account on code.videolan.org.
More information about the www-doc
mailing list