Cookie Callback Function für Microsoft Dynamics

Cookie Callback Function for Microsoft Dynamics

Please add the following script below your Microsoft Dynamics script.

Important: For this to work properly Microsoft Dynamics hast to be added to a category other than Marketing (like Statistics)

Find more Information in the Microsoft Dynamics Documentation:
Microsoft Dynamics Docs

Callback example

<script>
  function TruendoCookieControlCallback(cookieSettings) {
    if (cookieSettings.necessary) {
     // Run code here that should if this category is opted in
    }
    if (cookieSettings.preferences) {
     // Run code here that should if this category is opted in
    }
    if (cookieSettings.statistics) {
     // Run code here that should if this category is opted in
    }
    if (cookieSettings.marketing) {
      MsCrmMkt.reconfigureTracking({Anonymize: false});
    } else { // else command to run code when the user does not accept
      MsCrmMkt.reconfigureTracking({Anonymize: true});
    }
    if (cookieSettings.social_content) {
     // Run code here that should if this category is opted in
    }
    if (cookieSettings.social_sharing) {
     // Run code here that should if this category is opted in
    }
  }
</script>