Merge pull request #82 from Webmecanik/add_webmecanik

Adding webmecanik service
This commit is contained in:
Amauri CHAMPEAUX 2018-05-30 17:12:13 +02:00 committed by GitHub
commit dd05f9d213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View File

@ -56,7 +56,11 @@ Bonus:
* Comment
* Disqus
* Facebook (commentaire)
* Marketing Automation & CRM
* Mautic
* Webmecanik Automation
* Social network
* AddThis
* AddToAny (feed)

View File

@ -1867,3 +1867,26 @@ tarteaucitron.services.facebookpixel = {
}
};
// webmecanik
tarteaucitron.services.webmecanik = {
"key": "webmecanik",
"type": "analytic",
"name": "Webmecanik",
"uri": "https://webmecanik.com/tos",
"needConsent": true,
"cookies": ['mtc_id', 'mtc_sid'],
"js": function () {
"use strict";
if (tarteaucitron.user.webmecanikurl === undefined) {
return;
}
window['WebmecanikTrackingObject'] = 'mt';
window['mt'] = window['mt'] || function() {
(window['mt'].q = window['mt'].q || []).push(arguments);
};
tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
mt('send', 'pageview');
});
}
};