web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Associating Authenticated Users with Dynamics 365 Marketing Tracking Embed Code

(0) ShareShare
ReportReport
Posted on by 15

I would like to embed the online behavior tracking code into every page within my CMS. I understand how to generate the code and where to place it in my CMS. I need help understanding how I can facilitate making connections to known users. My site is navigable anonymously. The tracking code will work perfectly to capture anonymous user behavior. My site also has free and premium accounts. I will know many of the users on the site. I can store information about authenticated users as a cookie or in custom <meta> fields. What is the best mechanism to quickly link the tracking cookie with the information I already know?

Thanks,
Eric

I have the same question (0)
  • eowsley Profile Picture
    15 on at

    I should add that my registration process is currently submitting to a different database. My Dynamics 365 application receives that data periodically, but it is not the source of record for authentication.

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Have you tried to create contacts to sync the authenticated users in your CMS?

    It may help you to track the behaviors more efficiently.

     pastedimage1619676914379v1.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • eowsley Profile Picture
    15 on at

    I would like to prevent the contact name from coming in as anonymous in the first place, since I have the user logged in and know who they are. I just can't foresee needing to use a from submission that would place a second cookie that is used to link the original tracking cookie to the now known user.

    I want to find some way of adding the user's email address or username to the <div> to force the connection:

    <div class="d365-mkt-config" style='display:none' data-username='johndoe' data-website-id='pfY0...' data-hostname='9c5c...'></div>

    There may be some other obvious way of doing this, but it's not clear to me.

    Thanks,
    Eric

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 202 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans