Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

#msdynmkt_trackingcontext= at end of URL is this needed?

Posted on by 2,091
Hi all,
 
Just a quick question. We're testing UTMs and adding a url in a email that sends a user to a landing page on our website. We've toggled on UTM tracking and noticed this thing that gets appended on URLs:
 
#msdynmkt_trackingcontext=f9446dbc-7af7-4ef4-92f6-4e9d7705762d
 
Is this required for tracking clicks? Wouldn't it affect the end value of whatever UTM parameter at the end of the URL?
 
If it doesn't track clicks what does it do and is there a way to disable it? Because the # is confusing our website as it's thinking it's some sort of anchor.
 
 
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,202 Super User 2024 Season 1 on at
    #msdynmkt_trackingcontext= at end of URL is this needed?
    The #msdynmkt_trackingcontext appended to your URLs by Dynamics 365 Marketing is not directly related to UTM tracking or click tracking. Here's a detailed explanation:
     
    Purpose of #msdynmkt_trackingcontext
     
    This hash (#) fragment is part of Dynamics 365 Marketing's native tracking mechanism. It is used internally to pass tracking context for marketing interactions (e.g., email clicks, form submissions, etc.) between the Dynamics environment and your website.
     
    The hash fragment is not sent to the server when a browser requests the page—it is processed on the client side (by JavaScript). Therefore, it typically does not interfere with UTM parameters unless your website is configured in a way that interprets it incorrectly.
     
    Why It Doesn't Affect UTM Parameters
     
    UTM parameters are part of the URL's query string (preceded by ?). The fragment (preceded by #) is separate and does not interact with or overwrite UTM parameters.
     
    Most analytics tools (e.g., Google Analytics) ignore fragments like #msdynmkt_trackingcontext.
     
    Potential Issues:
    If your website incorrectly interprets the hash fragment, this could lead to unintended behavior. For example:
     
    If your website or scripts treat the # as an anchor or attempt to parse it for navigation purposes, it might cause errors.
     
    How to Disable It
    Unfortunately, Dynamics 365 Marketing does not provide a built-in way to disable the #msdynmkt_trackingcontext. However, you have a few options to work around this:
     
    1. Custom Script to Remove the Fragment: You can use JavaScript on your landing page to remove the #msdynmkt_trackingcontext.
     
    2. Update Website Behavior: Adjust your website's scripts to ignore the # fragment or avoid interpreting it as an anchor.
     
    3. Test UTM Tracking: Before removing it, verify whether the #msdynmkt_trackingcontext is essential for your email click tracking. If not, you can proceed with mitigation.
     
    Click Tracking Without It
     
    Click tracking for UTM parameters is managed separately:
     
    If you toggle on UTM tracking in Dynamics 365 Marketing, it ensures the correct UTM parameters are appended to the URL. These parameters are used by analytics platforms to track the source, medium, campaign, etc.
     
    The #msdynmkt_trackingcontext is mainly for Dynamics' own purposes and does not impact your UTM tracking in analytics tools.
     
    If the hash fragment is problematic, you can safely remove or work around it, as Dynamics should still track clicks and UTM parameters via the query string.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans