# Document links - tracking code

**URL:** <https://community.hubspot.com/t/document-links-tracking-code/127665>\
**Category:** CRM\
**Tags:** starter\
**Created:** [March 10, 2025, 5:30pm UTC](https://community.hubspot.com/t/document-links-tracking-code/127665 "2025-03-10T17:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian929394](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@brian929394](https://community.hubspot.com/u/brian929394)\
**Post date:** [March 10, 2025, 5:30pm UTC](https://community.hubspot.com/t/document-links-tracking-code/127665/1 "2025-03-10T17:30:32Z")

</div>

Hi,

I have the Hubspot Tracking Code installed on my website. When someone fills in the form, I successfully can see their page visits. However, my question is - does that also work when sending documents in emails to clients? In other words, if I send a hubspot document link in an email from Hubspot, when the contact clicks on it, does it associate their ‘browsing’ with their contact record in Hubspot the same way a form does?

Thanks,

Brian

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 10, 2025, 5:41pm UTC](https://community.hubspot.com/t/document-links-tracking-code/127665/2 "2025-03-10T17:41:29Z")

</div>

Hi @brian929394,

If you use documents (with dedicated tracking capabilities), yes: [Upload and share documents](https://knowledge.hubspot.com/documents/use-documents)

If you share a direct link to a file from the file manager, then no, as the tracking code is not executed on the file link itself.

Best regards!
