Skip to content

Commit

Permalink
chore: configure auto-block script (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Sep 24, 2024
1 parent f46c9b9 commit d4d034a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/plugins/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ module.exports = function (context) {
injectHtmlTags() {
return {
headTags: [
{
tagName: "script",
innerHTML: `
window.TERMLY_CUSTOM_BLOCKING_MAP = {
"sqa-web.ory.sh": "essential",
"static.reo.dev": "advertising",
}
`
},
{
tagName: "script",
attributes: {
Expand All @@ -14,11 +23,9 @@ module.exports = function (context) {
},
{
tagName: "script",
attributes: {
type: "text/javascript",
"data-categories": "essential",
src: "https://www.ory.sh/scripts/cookies.js",
},
innerHTML: `
!function(){var e,t,n;e="400b988f083a73b",t=function(){Reo.init({clientID:"400b988f083a73b"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.async=!0,n.onload=t,document.head.appendChild(n)}();
`
},
],
}
Expand Down

0 comments on commit d4d034a

Please sign in to comment.