Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module integrates with cookie consent management to control Microsoft Dynamics 365 Marketing form tracking. It adds JavaScript snippets to either anonymize user data for Dynamics 365 forms when consent is not given, or enable full tracking when consent is provided.

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-alpha2 Pre-release 9–11 Jul 28, 2025