Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
Latest version 0.1.5:

* Update to ga-lite v 2;
* Removes force page reloading when user refuse cookies;
* New json file encoded for translations.
  • Loading branch information
cara-tm committed Feb 8, 2018
1 parent 26daf27 commit 9b1b21a
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 99 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note. The plugin use international translation by default if you don't use the c
# JS files that generate cookies

Some third-parties libraries generate external cookies. For example the Google Analytics script or the scripts used by Social Networks. Create such a file (or multiple ones) for this acceptance by your visitors in order to respect the EU Cookies law.
You can find the [ga-lite script](https://github.com/cara-tm/pat_eu_cookies_law/blob/master/js/ga-lite.min.js) in this repository for your analytics as an example.
You can find the [ga-lite script](https://github.com/cara-tm/pat_eu_cookies_law/blob/master/js/ga-lite.min.js) and the file to load (`file.js`) with your Google Analytics account number in this repository for your analytics as an example.

# Advice

Expand All @@ -51,6 +51,7 @@ Don't miss to create a _Legal_ page within your website and precise the purpose

# Changelog

* 3td January 2018: version 0.1.5
* 2nd January 2018: version 0.1.4
* 16th December 2017: version 0.1.3
* 8th December 2017: version 0.1.2
Expand Down
7 changes: 7 additions & 0 deletions js/file.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(function(e,t,n,i,s,a,c){e[n]=e[n]||function(){(e[n].q=e[n].q||[]).push(arguments)}
;a=t.createElement(i);c=t.getElementsByTagName(i)[0];a.async=true;a.src=s
;c.parentNode.insertBefore(a,c)
})(window,document,"galite","script","ga-lite.min.js");

galite('create', 'UA-XXXXXXXX-X', 'auto');
galite('send', 'pageview');
7 changes: 1 addition & 6 deletions js/ga-lite.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion json/pat_eu_cookies_law_en.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"msg":"This website stores some third-parts cookies within your device. You can <a href=\"#!\" title=\"I accept the use of cookies and I close this message\" id=\"ok-cookies\">Accept</a> or <a href=\"#!\" title=\"I refuse to use Cookies and a message will continue to appear\" id=\"no-cookies\">Refuse</a> them.","refuse":"You refuse external third-party cookies: none, at the initiative of this site, are present on your device.","remind":"Time remaining before Cookies automatic launch","no_allowed":"Currently, your browser is set to disable all cookies (check its preferences)."}
{
"msg":"This website stores some third parts cookies within your device. You can <a href=\"#!\" title=\"I accept the use of cookies and I close this message\" class=\"tooltip tooltip-bottom tooltip-large\" id=\"ok-cookies\">Accept<\/a> or <a href=\"#!\" title=\"I refuse to use Cookies and a message will continue to appear\" class=\"tooltip tooltip-bottom tooltip-large\" id=\"no-cookies\">Refuse<\/a> them.","refuse":"You refuse external third-party cookies: none, at the initiative of this site, are present into your device.","remind":"Time remaining before Cookies automatic launch:","no_allowed":"Currently, your browser is set to disable cookies (check its preferences)."
}
7 changes: 6 additions & 1 deletion json/pat_eu_cookies_law_fr.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{"msg":"Ce site enregistre des Cookies tiers externes sur votre appareil. Vous pouvez les <a href=\"#!\" title=\"J’accepte l’usage de &quot;Cookies&quot; et je ferme ce message\" id=\"ok-cookies\">Accepter</a> ou les <a href=\"#!\" title=\"Je refuse l’usage de &quot;Cookies&quot; et un message\r m’en informant continuera à apparaître\" id=\"no-cookies\">Refuser</a>.","refuse":"Vous refusez les \"Cookies\" tiers externes : aucun, à l’initiative de ce site, n’est présent sur votre appareil.","remind":"Délai restant avant l’acceptation automatique des \"Cookies\" :","no_allowed":"Votre navigateur est configuré pour interdire tous \"Cookies\" (veuillez corriger ses préférences)."}
{
"msg": "Ce site enregistre des Cookies tiers externes sur votre appareil. Vous pouvez les <a href=\"#!\" title=\"J’accepte l’usage de Cookies et je ferme ce message\" class=\"tooltip tooltip-bottom tooltip-large\" id=\"ok-cookies\">Accepter<\/a> ou les <a href=\"#!\" title=\"Je refuse l’usage de Cookies et un message\r m’en informant s’affichera\" class=\"tooltip tooltip-bottom tooltip-large\" id=\"no-cookies\">Refuser<\/a>",
"remind": "Temps restant avant l’acceptation automatique des Cookies :",
"refuse": "Vous refusez les Cookies tiers externes : aucun, depuis ce site, n’est enregistré sur votre appareil.",
"no_allowed": "Votre navigateur est configuré pour interdire tous Cookies (veuillez corriger ses parametres)."
}
90 changes: 0 additions & 90 deletions pat_eu_cookies_law_v0.1.4_zip.txt

This file was deleted.

Loading

0 comments on commit 9b1b21a

Please sign in to comment.