{"__v":11,"_id":"55e5a5396015ce1900eadb54","category":{"__v":9,"_id":"55e58d16f493c11700584314","pages":["55e58d21f11ba80d003238be","55e59fddd101191900f30b82","55e5a218f11ba80d00323911","55e5a28bf11ba80d00323915","55e5a2adf11ba80d00323917","55e5a335a603d62300f8926f","55e5a4cad101191900f30b9d","55e5a5396015ce1900eadb54","55e81c700f5df10d004a9c10"],"project":"55e58b63d101191900f30b13","version":"55e58b63d101191900f30b16","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-01T11:33:42.203Z","from_sync":false,"order":1,"slug":"js-api","title":"JavaScript API"},"parentDoc":null,"project":"55e58b63d101191900f30b13","user":"5554788cb450630d00041dbc","version":{"__v":3,"_id":"55e58b63d101191900f30b16","project":"55e58b63d101191900f30b13","createdAt":"2015-09-01T11:26:27.668Z","releaseDate":"2015-09-01T11:26:27.668Z","categories":["55e58b65d101191900f30b17","55e58d16f493c11700584314","55e58d1bd101191900f30b1d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-01T13:16:41.774Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"This is used to show the user how he/she can opt out of push notifications. A modal box will open up with a screenshot showing how a user can unsubscribe.\n\nThe same is pushed into the global _pcq queue.\n\n**Parameters:**\n\n1) triggerOptOut: Command to trigger OptOut.\n\nRefer to the syntax below:\n\n_pcq.push(['triggerOptOut']);\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"window._pcq = window._pcq || [];\\n_pcq.push(['triggerOptOut']);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"trigger-optout","type":"fn","title":"Trigger Opt-Out"}