Skip to content

Commit

Permalink
fix: Rollback onetrust auto-blocking and remove google consent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Oct 9, 2023
1 parent 55419a4 commit c881443
Showing 1 changed file with 5 additions and 53 deletions.
58 changes: 5 additions & 53 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,64 +24,16 @@
rel="stylesheet"
/>
<meta name="theme-color" content="#1976d2" />
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
const EU = [
'AT',
'BE',
'BG',
'HR',
'CY',
'CZ',
'DK',
'EE',
'FI',
'FR',
'DE',
'GR',
'HU',
'IE',
'IT',
'LV',
'LT',
'LU',
'MT',
'NL',
'PL',
'PT',
'RO',
'SK',
'SI',
'ES',
'SE',
'IS',
'LI',
'NO',
]
const countries = EU.concat('GB', 'BR', 'US-CA')

gtag('consent', 'default', {
analytics_storage: 'denied',
ad_storage: 'denied',
region: countries,
wait_for_update: 500,
})

gtag('consent', 'default', {
analytics_storage: 'granted',
ad_storage: 'granted',
wait_for_update: 500,
})
</script>
<script
type="text/javascript"
src="https://cdn.cookielaw.org/consent/5a6d60d3-b085-4e48-8afa-d707c7afc419/OtAutoBlock.js"
></script>
<script
type="text/javascript"
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
charset="UTF-8"
data-document-language="true"
data-domain-script="5a6d60d3-b085-4e48-8afa-d707c7afc419-test"
data-domain-script="5a6d60d3-b085-4e48-8afa-d707c7afc419"
></script>
<script type="text/javascript">
function OptanonWrapper() {
Expand Down

0 comments on commit c881443

Please sign in to comment.