From 7a6ce254dbf9dad2ed522c54acc04b6f0d8989e9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 3 Mar 2021 17:07:11 +0100 Subject: [PATCH] Add Pingdom --- tarteaucitron.services.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 4242ca5..673846b 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -993,6 +993,27 @@ tarteaucitron.services.ferank = { } }; +// pingdom +tarteaucitron.services.pingdom = { + "key": "pingdom", + "type": "api", + "name": "Pingdom", + "uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.pingdomId === undefined) { + return; + } + + window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]]; + + tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js'); + } +}; + // simpleanalytics tarteaucitron.services.simpleanalytics = {