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