From 489d37a5b24ba88df813b6a0d743f824fe500c0c Mon Sep 17 00:00:00 2001 From: lucmuller Date: Fri, 29 Jun 2018 11:56:03 +0200 Subject: [PATCH 1/3] Ajout d'un service pour Google On Steroids Voir : https://github.com/CardinalPath/gas --- tarteaucitron.services.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ba771ea..dfc1151 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1030,6 +1030,38 @@ tarteaucitron.services.gajs = { } }; +// google on steroids +var _gas = _gas || []; +tarteaucitron.services.gas = { + "key": "gas", + "type": "analytic", + "name": "Google Analytics on Steroids", + "uri": "https://github.com/CardinalPath/gas", + "needConsent": true, + "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'], + "js": function () { + "use strict"; + _gas.push(['_setAccount', tarteaucitron.user.gasUa]); // REPLACE WITH YOUR GA NUMBER + _gas.push(['_setDomainName', tarteaucitron.parameters.cookieDomain]); // REPLACE WITH YOUR DOMAIN + _gas.push(['_trackPageview']); + _gas.push(['_gasTrackForms']); + _gas.push(['_gasTrackOutboundLinks']); + _gas.push(['_gasTrackMaxScroll']); + _gas.push(['_gasTrackDownloads']); + _gas.push(['_gasTrackVideo']); + _gas.push(['_gasTrackAudio']); + _gas.push(['_gasTrackYoutube', {force: true}]); + _gas.push(['_gasTrackVimeo', {force: true}]); + _gas.push(['_gasTrackMailto']); + + tarteaucitron.addScript('//cdnjs.cloudflare.com/ajax/libs/gas/1.11.0/gas.min.js', 'gas-script', function () { + if (typeof tarteaucitron.user.gasMore === 'function') { + tarteaucitron.user.gasMore(); + } + },'','data-use-dcjs','false'); + } +}; + // google analytics tarteaucitron.services.analytics = { "key": "analytics", @@ -2165,3 +2197,4 @@ tarteaucitron.services.webmecanik = { }); } }; + From c35edea79da580b7e9e9710ff0068d2f0218cb73 Mon Sep 17 00:00:00 2001 From: lucmuller Date: Mon, 23 Jul 2018 10:39:40 +0200 Subject: [PATCH 2/3] Update tarteaucitron.services.js --- tarteaucitron.services.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c7838b5..4fc6a54 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -711,7 +711,7 @@ tarteaucitron.services.facebook = { "cookies": [], "js": function () { "use strict"; - tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], ''); + tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], ''); tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk'); if (tarteaucitron.isAjax === true) { if (typeof FB !== "undefined") { @@ -722,7 +722,7 @@ tarteaucitron.services.facebook = { "fallback": function () { "use strict"; var id = 'facebook'; - tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id)); + tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id)); } }; @@ -2230,4 +2230,4 @@ tarteaucitron.services.multiplegtag = { }); }); } -}; \ No newline at end of file +}; From 3dc11107aab0e6777a658623f58c10f14167952f Mon Sep 17 00:00:00 2001 From: lucmuller Date: Mon, 23 Jul 2018 10:46:14 +0200 Subject: [PATCH 3/3] Update tarteaucitron.services.js Suppression de Gogle On Steroids depuis mon master --- tarteaucitron.services.js | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index eb0ffe8..b79a78b 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1030,38 +1030,6 @@ tarteaucitron.services.gajs = { } }; -// google on steroids -var _gas = _gas || []; -tarteaucitron.services.gas = { - "key": "gas", - "type": "analytic", - "name": "Google Analytics on Steroids", - "uri": "https://github.com/CardinalPath/gas", - "needConsent": true, - "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'], - "js": function () { - "use strict"; - _gas.push(['_setAccount', tarteaucitron.user.gasUa]); // REPLACE WITH YOUR GA NUMBER - _gas.push(['_setDomainName', tarteaucitron.parameters.cookieDomain]); // REPLACE WITH YOUR DOMAIN - _gas.push(['_trackPageview']); - _gas.push(['_gasTrackForms']); - _gas.push(['_gasTrackOutboundLinks']); - _gas.push(['_gasTrackMaxScroll']); - _gas.push(['_gasTrackDownloads']); - _gas.push(['_gasTrackVideo']); - _gas.push(['_gasTrackAudio']); - _gas.push(['_gasTrackYoutube', {force: true}]); - _gas.push(['_gasTrackVimeo', {force: true}]); - _gas.push(['_gasTrackMailto']); - - tarteaucitron.addScript('//cdnjs.cloudflare.com/ajax/libs/gas/1.11.0/gas.min.js', 'gas-script', function () { - if (typeof tarteaucitron.user.gasMore === 'function') { - tarteaucitron.user.gasMore(); - } - },'','data-use-dcjs','false'); - } -}; - // google analytics tarteaucitron.services.analytics = { "key": "analytics", @@ -2270,4 +2238,4 @@ tarteaucitron.services.matomo = { tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true); } -}; \ No newline at end of file +};