Merge pull request #458 from pierrepriot/master

added woopra customer journey analytics support
This commit is contained in:
Amauri CHAMPEAUX 2020-07-02 08:38:34 +02:00 committed by GitHub
commit f3decd4436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -3158,3 +3158,28 @@ tarteaucitron.services.adobeanalytics = {
tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js'); tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
} }
}; };
// woopra customer journey analytics
tarteaucitron.services.woopra = {
'key': 'woopra',
'type': 'analytic',
'name': 'Woopra Customer Journey Analytics',
'uri': 'https://www.woopra.com/privacy',
'needConsent': true,
'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
'js': function () {
'use strict';
//var w = tarteaucitron.user.woopraDomain;
//window[w] = window[w] || [];
(function(){
var t,i,e,n=window,o=document,a=arguments,s="script",r=["config","track","identify","visit","push","call","trackForm","trackClick"],c=function(){var t,i=this;for(i._e=[],t=0;r.length>t;t++)(function(t){i[t]=function(){return i._e.push([t].concat(Array.prototype.slice.call(arguments,0))),i}})(r[t])};for(n._w=n._w||{},t=0;a.length>t;t++)n._w[a[t]]=n[a[t]]=n[a[t]]||new c;i=o.createElement(s),i.async=1,i.src="//static.woopra.com/js/w.js",e=o.getElementsByTagName(s)[0],e.parentNode.insertBefore(i,e)
})("woopra");
woopra.config({
domain: tarteaucitron.user.woopraDomain
});
woopra.track();
}
};