Skip to main content

Notifications

Announcements

No record found.

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

Associating Authenticated Users with Dynamics 365 Marketing Tracking Embed Code

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

  • eowsley Profile Picture
    eowsley 15 on at
    RE: Associating Authenticated Users with Dynamics 365 Marketing Tracking Embed Code

    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

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Associating Authenticated Users with Dynamics 365 Marketing Tracking Embed Code

    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
    eowsley 15 on at
    RE: Associating Authenticated Users with Dynamics 365 Marketing Tracking Embed Code

    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.

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans