Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

This module is very specific and work in progress. Do NOT use in production!

Provides anonymize callbacks for Dynamics 365 Forms with COOKiES Consent Management Cookie Banner as described in How to disable non-essential Dynamics 365 Marketing cookies:

This module does not add, handle or block any MS Dynamics 365 Form Code snippets. Neither it blocks the MS Dynamics 365 Marketing Scripts or Forms or Cookies. Its only focus is to set / remove the "anonymize" flag as documented.

Functionality

This module neither adds the MS Dynamics 365 Marketing Forms code to the project,
nor it provides functionality to handle the codes.

It simply adds the "anonymize: true" / "anonymize: false" flag JS Snippet from
https://docs.microsoft.com/en-us/dynamics365/marketing/cookies#how-to-disable-non-essential-dynamics-365-marketing-cookies
based on the consent decision.

  • If conset IS NOT given (default), it adds "anonymize: true".
  • If consent IS given, it adds "anonymize: false".

Technically spoken:

If consent is not given, places

<script>
    function d365mktConfigureTracking() {
         return {Anonymize: true};
    }
</script>

globally.

If consent is given, calls

MsCrmMkt.reconfigureTracking({Anonymize: false})

How to use

  • Enable and configure COOKiES module and this module.
  • Add the MS Dynamics 365 Marketing Forms to your page like before.
  • Ensure the anonymization is added to every page and is working as expected!

How to test

Call d365mktConfigureTracking(); in your browser console with and without cookie consent to check if anonymize: "true" or "false" is returned. If the function is not defined, something is broken.

Activity

Total releases
1
First release
Jul 2025
Latest release
8 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Jul 28, 2025