Skip to content

Commit afd6b23

Browse files
Update tbx/static_src/javascript/components/cookie-message.js
Co-authored-by: Alex Bridge <[email protected]>
1 parent e1d5ef3 commit afd6b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tbx/static_src/javascript/components/cookie-message.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class CookieWarning {
4949
Cookies.set(this.cookieName, cookieValue, {
5050
expires: this.cookieDuration,
5151
});
52+
// Only allow VWO to be enabled if cookies have been accepted
5253
if (cookieValue) {
5354
window.VWO.init(1);
5455
window.VWO.push(['optInVisitor']);

0 commit comments

Comments
 (0)