debug: change vwo script id
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import Script from "next/script"
|
||||
import { env } from "@/env/server"
|
||||
|
||||
export default function VwoScript() {
|
||||
return (
|
||||
<Script id="initialize-vwo" data-cookieconsent="statistics">{`
|
||||
<Script id="vwoCode" data-cookieconsent="statistics">{`
|
||||
// VWO initialization code
|
||||
// Note ------------
|
||||
// Any update in this file should also update the cache burst parameter manually in the layout files
|
||||
@@ -10,7 +11,6 @@ export default function VwoScript() {
|
||||
|
||||
var _vwo_clicks = 50;
|
||||
console.log('firing!!!!!');
|
||||
debugger;
|
||||
//DO NOT make any changes to smart code except for entering your account id
|
||||
window._vwo_code = window._vwo_code || (function() {
|
||||
var account_id = 373511,
|
||||
@@ -120,6 +120,7 @@ export default function VwoScript() {
|
||||
popupSelector: '#CybotCookiebotDialog',
|
||||
isConsentGiven: function() {
|
||||
/** your custom Code */
|
||||
debugger;
|
||||
if (document.cookie.indexOf("CookieConsent") != -1) {
|
||||
var ccValue = decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent("CookieConsent").replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
|
||||
let consentValue = "2";
|
||||
|
||||
Reference in New Issue
Block a user