Limit the GA cookie to 13 months

This commit is contained in:
Amauri CHAMPEAUX 2014-09-22 15:57:51 +02:00
parent 22ef88c0fb
commit 5409e2220a
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ tarteaucitron.services.analytics = {
window.ga.l = new Date(); window.ga.l = new Date();
tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () { tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
ga('create', tarteaucitron.user.analyticsUa, 'auto'); ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
ga('send', 'pageview'); ga('send', 'pageview');
if (typeof tarteaucitron.user.analyticsMore === 'function') { if (typeof tarteaucitron.user.analyticsMore === 'function') {
tarteaucitron.user.analyticsMore(); tarteaucitron.user.analyticsMore();