Preview of Code Above
Common ID Cookie
Advertising Privacy Settings
FOR EU USERS ONLY: When you use our site, pre-selected companies may access and use certain information on your device and about your interests to serve ads or personalized content. You may revisit or change consent-choices at any time by clicking here.
For React Sites, the implementation is slightly different.
- For The Apple ITP Portion, define the arrow function setCookie before render(), call it onClick with the keyword "this" (see .txt file below for reference)
- For the CMP portion - window.__cmp('showConsentTool') does work properly in React, however, you must first check to see if it that function exists and the proper syntax must be followed. Please reference code below.
- These React Code Snippets can be found here