# HubSpot tracking code - Deleting old assets

**URL:** <https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465>\
**Category:** CRM\
**Tags:** ctas, website-pages, crm, forms, contacts, landing-pages\
**Created:** [November 4, 2021, 9:53am UTC](https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465 "2021-11-04T09:53:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smartbound](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/smartbound/32/103492_2.png) [@Smartbound](https://community.hubspot.com/u/Smartbound)\
**Post date:** [November 4, 2021, 9:53am UTC](https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465/1 "2021-11-04T09:53:21Z")

</div>

Hi There! I have doubts regarding HubSpot tracking code, if we have contacts that have registered through a form, CTA or landing page and those assets are no longer in use and we want to delete them, do we lose the user tracking? TIA

---

<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:** [November 4, 2021, 10:02am UTC](https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465/2 "2021-11-04T10:02:18Z")

</div>

Hi @Smartbound,

HubSpot tracking is cookie-based and deleting assets like forms or CTAs doesn’t have any effect on the cookies. These website visitors / contacts will continue to be tracked if they have accepted the cookies. However, if you delete HubSpot assets, you will lose the analytics data for these specific assets. Asset deleted = asset analytics gone.

Best regards!

---

<div class="post-metadata">

**Author:** ![Smartbound](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/smartbound/32/103492_2.png) [@Smartbound](https://community.hubspot.com/u/Smartbound)\
**Post date:** [November 4, 2021, 10:04am UTC](https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465/3 "2021-11-04T10:04:21Z")

</div>

Thank you very much for pointing me in the right direction Karsten. 🙌

---

<div class="post-metadata">

**Author:** ![JohnInDallas](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@JohnInDallas](https://community.hubspot.com/u/JohnInDallas)\
**Post date:** [May 13, 2024, 8:12pm UTC](https://community.hubspot.com/t/hubspot-tracking-code-deleting-old-assets/46465/4 "2024-05-13T20:12:21Z")

</div>

@karstenkoehler I’m looking at this as well. And while i get the cookies thing - makes sense - when we speak to assets - and tracking of those assets - I need some clarity.  
**DO NOT DELETE IT - GOT IT.**  
Can we **rename it** to the same name?  
If we upload a new version of a file with the same name does tracking start over?  
Is the tracking FILE NAME BASED or ASSET UPLOAD DATE related?  
If we update an asset - is it best to upload it with a new name and start tracking over based on the new asset elements?
