File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import './24-graphacademy-certification'
1919import './23-yelp-agreement'
2020import './25-graphgist'
2121// import './30-personalisation'
22+ import './31-scarf-pixel'
2223import './40-challenges'
2324import './50-cheat-sheet-toggle'
2425import './60-docs-roles'
You can’t perform that action at this time.
0 commit comments