Set up and manage consent

Set up Mandatly to obtain user consent

To capture valuable insights while protecting user privacy, you need to collect consent from your website users. We recommend you use a Consent Management Platform (CMP) or work with your Content Management System (CMS) to collect consent and send it to Google.

Step 1 of 2: Set up a consent banner

Configure the Google Consent Mode settings within the Mandatly system to align with consent preferences and ensure proper data handling.

  1. Create your Mandatly account.
  2. Configure your banner using the “Add Website” wizard.
  3. Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).

Learn more about  Mandatly banner setup.


Step 2 of 2: Set up consent mode

Set up using Google Tag Manager

  1. Open Google Tag Manager, and navigate to your container.
  2. In “Tags”, select New and name the tag.
  3. Select Tag Configuration > Discover more tag types in the Community Template Gallery.
  4. From the gallery, search for “Mandatly”, then install “Mandatly CMP” by mandatly-inc.
  5. Make sure the “Enable Google Consent Mode” toggle is ON. Learn more About Google Consent Mode.
  6. Copy your website GUID from Mandatly CMP account and paste it in website guid field. Learn more about How to get website guid from Mandatly account.
  7. Depending on your specific requirements, set the Default Consent Settings regionally or globally.
  8. Configure the Other Settings such as Wait for update (milliseconds), Pass ad click information through URLs (url_passthrough), and Redact ads data (ads_data_redaction).
  9. Select Add > Triggering.
  10. Select Consent Initialization - All Pages.
  11. Select Save.
  12. Test your container by selecting Preview in the top right corner.
  13. Publish your container.

Set up using other platforms or directly editing website code

  1. Login to your Mandatly account, then go to Cookie Compliance > Websites.
  2. Select Domain URL from the list.
  3. Navigate to the “Integration” tab, copy the code snippet.
  4. Paste the code snippet into the tag of each page.
    • If you use a website builder, review the integration documentation to find out how to implement code in the tag of each page.
  5. In the tag of each page, paste the following code before your CMP code snippet.
This is critical in order to ensure the CMP functions properly.