OneTrust & Segment (#1563)

* remove cookit (styling and logic), introduce segment load snippet directly into <head>, no consent for loading, add onetrust consent snippet and logic

* simplify register call and leverage window.OnetrustActiveGroups

* onetrust load before segment ready

* add production value for HUGO_PARAMS_onetrustScriptId to netlify.toml
This commit is contained in:
jasonbryant84
2025-05-08 14:31:08 +01:00
committed by GitHub
parent 846915a216
commit f89f6c7039
17 changed files with 123 additions and 406 deletions
@@ -78,6 +78,7 @@
<a href="{{ .Params.termsLink.url }}">{{ .Params.termsLink.text }}</a>
<a href="{{ .Params.privacyLink.url }}">{{ .Params.privacyLink.text }}</a>
<a href="{{ .Params.impressumLink.url }}">{{ .Params.impressumLink.text }}</a>
<a href="#" onClick="OneTrust.ToggleInfoDisplay();return false;">Cookie Consent</a>
</div>
</div>
</div>