Full opt-out mode and local mode
Full opt-out mode and local mode are two variants of the standard Eulerian tag. The first adds an extension to the tag that handles a complete opt-out, which stops the Eulerian JS library from loading and blocks every EA_push call the page might make. The second is a reduced version that allows no interaction with the site.
Full opt-out mode
Loading the generic JavaScript library
To install the Eulerian tag in “full optout” mode, copy the following code and paste it just after the opening HTML <head> tag on every page of your website. Replace mon.domainedetracking.com with the collection subdomain you want to send your data through.
<script>
(function(e,a){var i=e.length,y=5381,k='script',z='_EA_',zd=z+'disabled',s=window,v=document,o=v.createElement(k),l=s.localStorage;for(;i;){i-=1;y=(y*33)^e.charCodeAt(i)}y=z+(y>>>=0);(function(e,a,s,y,z,zd,l){s[a]=s[a]||function(){(s[y]=s[y]||[]).push(arguments);s[y].eah=e;};s[zd]=function(){return l.getItem(z);};s[z+'toggle']=function(){(s[zd]())?l.removeItem(z):l.setItem(z,1);}}(e,a,s,y,z,zd,l));
if(!s[zd]()){i=new Date/1E7|0;o.ea=y;y=i%26;o.async=1;o.src='//'+e+'/'+String.fromCharCode(97+y,122-y,65+y)+(i%1E3)+'.js?2'; s=v.getElementsByTagName(k)[0];s.parentNode.insertBefore(o,s);}})('mon.domainedetracking.com','EA_push');
</script>
The EA_push function is still declared (no error), but it no longer does anything. This extension lives entirely on the client side, with no external call. It stores the status permanently in localStorage, without a cookie.
By default, under Opt-In, this tag behaves exactly like the Standard tag. It handles consent-exempt collection (as defined by the CNIL, the French data protection authority) and passes on the consent collected.
The two added functions
You get two new functions, in addition to EA_push, to drive the complete opt-out status:
_EA_disabled(): returns the boolean value “true” for an Opt-Out and “false” for an Opt-In (the default)._EA_toggle(): reverses the Opt-Out status.
Integration example
<!-- my terms of sale or terms of use page, with the standard Tag + full opt-out extension -->
<button id="eulerian-optout"> --- </button>
<script>
function eulerian_button_status() {
let e = document.getElementById('eulerian-optout');
if (! e.onclick) {
e.onclick = eulerian_button_toggle;
}
if ( _EA_disabled() ) {
e.textContent="You are opt-out - click to opt-in";
}
else {
e.textContent="You are opt-in - click to opt-out";
}
}
function eulerian_button_toggle() {
_EA_toggle();
eulerian_button_status();
}
eulerian_button_status();
</script>
Local / reduced mode
This reduced version allows no interaction with the site. The services disabled are:
- Livetagging: no “server-side” configuration is possible
- Tag management system: no JavaScript can be returned
- Optimised CMP: no smart consent capture with preventive minimal collection is possible
Integration
As a remote call:
<script src="//<domain_de_collecte>/ea.localpix.js"></script>
Or by downloading the file and hosting it yourself. For example, download <domain_de_collecte>/ea.localpix.js and deploy it as /js/et.js:
<script src="/js/et.js"></script>
The EA_push function is declared automatically by the JavaScript. You can make the calls listed in Call types.
Eulerian tags
Eulerian tags are integrated in exactly the same way as described in Standard Eulerian tags.