If you plan to use any of the following analytics tools, please refer to the codes provided in the document for proper setup.
TABLE OF CONTENTS
Facebook pixel
Google Analytics
Google Tag Manager
Reading Cookie Categories The below code is optional if you wish to read consent or categories user has accepted for other custom code or third party javascript
Important Notes:
-
The cookie categories are stored in the cookie-categories cookie
-
Categories are comma-separated (e.g., “essential,advertising,analytics”)
-
Always check for initial consent when loading your marketing tools
-
Listen for consent change events to update tool settings
-
Remove any <noscript> tags as they may bypass consent checks