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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans