Skip to content

Commit

Permalink
feat(site): add another analytics scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Nov 22, 2024
1 parent 94b4998 commit 7d71e03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/cookieconsent.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineNuxtPlugin(nuxtApp => {
};

const enabledMarketing = () => {
var script = document.createElement('script');
const script = document.createElement('script');
script.src = 'https://cdn.cr-relay.com/v1/site/a52e9652-1bdf-4c6b-9ef0-06edf432aeef/signals.js';
script.async = true;
window.signals = Object.assign(
Expand All @@ -56,7 +56,12 @@ export default defineNuxtPlugin(nuxtApp => {
);
document.head.appendChild(script);

const reoScript = document.createElement('script');
reoScript.text = "!function(){var e,t,n;e=\"d6e8ccb6fd045f8\",t=function(){Reo.init({clientID:\"d6e8ccb6fd045f8\"})},(n=document.createElement(\"script\")).src=\"https://static.reo.dev/\"+e+\"/reo.js\",n.async=!0,n.onload=t,document.head.appendChild(n)}();";
document.head.appendChild(reoScript);

cookieConsent.loadScript('https://opps-widget.getwarmly.com/warmly.js?clientId=088e34e198e5f9dc0b0a4d37ad873a46',{defer: "defer"});

return cookieConsent.loadScript('https://js-eu1.hs-scripts.com/27220195.js',{defer: "defer"});
};

Expand Down

0 comments on commit 7d71e03

Please sign in to comment.