We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3990b7 commit 6e9524eCopy full SHA for 6e9524e
src/js/31-scarf-pixel.js
@@ -0,0 +1,10 @@
1
+// This script is used to load a pixel for Scarf analytics, but only if the user has accepted marketing cookies
2
+window.addEventListener('CookiebotOnAccept', function () {
3
+ if (Cookiebot.consent.marketing) {
4
+ var img = document.createElement('img')
5
+ img.src = 'https://static.neo4j.com/a.png?x-pxid=dae9b690-6a56-4889-a951-9d0207a18da6'
6
+ img.referrerPolicy = 'no-referrer-when-downgrade'
7
+ img.style.display = 'none'
8
+ document.body.appendChild(img)
9
+ }
10
+}, false)
0 commit comments