{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Disable Automatic Opt-In","type":"basic","slug":"disable-automatic-opt-in","excerpt":"","body":"By default, VWO Engage triggers an opt-in box for users on pages where VWO Engage JavaScript file is present.\n\nIf you wish to disable this, and instead want to trigger opt-ins manually, you can push the following event in the global _pcq queue.\n\n**Parameters:**\n\n1) noTrigger: Command to set the flag noTrigger.\n2) Value (Boolean): Denotes whether default opt-in is disabled.\n\nRefer to the syntax below:\n\n_pcq.push(['noTrigger', true]); //disables default opt-in\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"window._pcq = window._pcq || [];\\n_pcq.push(['noTrigger',true]); //disables automatic opt-in\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","updates":["597bbe04e64f68002e983226"],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55e81c700f5df10d004a9c10","githubsync":"","parentDoc":null,"__v":11,"category":{"sync":{"isSync":false,"url":""},"pages":["55e58d21f11ba80d003238be","55e59fddd101191900f30b82","55e5a218f11ba80d00323911","55e5a28bf11ba80d00323915","55e5a2adf11ba80d00323917","55e5a335a603d62300f8926f","55e5a4cad101191900f30b9d","55e5a5396015ce1900eadb54","55e81c700f5df10d004a9c10"],"title":"JavaScript API","slug":"js-api","order":1,"from_sync":false,"reference":false,"_id":"55e58d16f493c11700584314","project":"55e58b63d101191900f30b13","__v":9,"createdAt":"2015-09-01T11:33:42.203Z","version":"55e58b63d101191900f30b16"},"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["55e58b65d101191900f30b17","55e58d16f493c11700584314","55e58d1bd101191900f30b1d"],"_id":"55e58b63d101191900f30b16","__v":3,"createdAt":"2015-09-01T11:26:27.668Z","releaseDate":"2015-09-01T11:26:27.668Z","project":"55e58b63d101191900f30b13"},"project":"55e58b63d101191900f30b13","createdAt":"2015-09-03T10:09:52.565Z","user":"5554788cb450630d00041dbc"}

Disable Automatic Opt-In


By default, VWO Engage triggers an opt-in box for users on pages where VWO Engage JavaScript file is present. If you wish to disable this, and instead want to trigger opt-ins manually, you can push the following event in the global _pcq queue. **Parameters:** 1) noTrigger: Command to set the flag noTrigger. 2) Value (Boolean): Denotes whether default opt-in is disabled. Refer to the syntax below: _pcq.push(['noTrigger', true]); //disables default opt-in [block:code] { "codes": [ { "code": "window._pcq = window._pcq || [];\n_pcq.push(['noTrigger',true]); //disables automatic opt-in", "language": "javascript" } ] } [/block]