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 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
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.
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
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.
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156