Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

COOKiES MS Dynamics365 Marketing Anonymize

Security covered Maintenance fixes only

Part of the Cookies ecosystem · 6 projects

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.

Disclaimer

This is free, open source software, licensed under the GPL and provided "as is", without warranty of any kind. Tracking users and sharing their data with Meta affects their privacy. You alone are responsible for using this module in compliance with all applicable laws (e.g. GDPR, ePrivacy, CCPA). That includes obtaining valid consent where required and disclosing the tracking in your privacy policy.

Ask your assistant about COOKiES MS Dynamics365 Marketing Anonymize

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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 PHP Release date
1.0.0-alpha2 Pre-release 9–11 Jul 28, 2025