# Creating Custom Events using Javascript

**URL:** <https://community.hubspot.com/t/creating-custom-events-using-javascript/133047>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 20, 2025, 2:29pm UTC](https://community.hubspot.com/t/creating-custom-events-using-javascript/133047 "2025-05-20T14:29:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NCasey3](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NCasey3](https://community.hubspot.com/u/NCasey3)\
**Post date:** [May 20, 2025, 2:29pm UTC](https://community.hubspot.com/t/creating-custom-events-using-javascript/133047/1 "2025-05-20T14:29:06Z")

</div>

Hi,

Apologies if this is an obvious question, but when creating a Custom Event in Hubspot using Javascript, do we need to define all property values if we’ve already selected to track default Properties at the ‘Properties’ stage of set-up?

Thanks!

---

<div class="post-metadata">

**Author:** ![kosalaindrasiri](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kosalaindrasiri/32/44349_2.png) [@kosalaindrasiri](https://community.hubspot.com/u/kosalaindrasiri)\
**Post date:** [May 20, 2025, 5:42pm UTC](https://community.hubspot.com/t/creating-custom-events-using-javascript/133047/2 "2025-05-20T17:42:39Z")

</div>

Hi @NCasey3,

No, you don’t need to manually define every property in your JS snippet if you’ve selected default properties during setup.

Refer:

- [How to Create Custom Events](https://knowledge.hubspot.com/reports/create-custom-behavioral-events-with-the-code-wizard)
- [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/guides/api/analytics-and-events/custom-events/custom-event-definitions)

Regards,

Kosala

---

<div class="post-metadata">

**Author:** ![NCasey3](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NCasey3](https://community.hubspot.com/u/NCasey3)\
**Post date:** [May 22, 2025, 8:42am UTC](https://community.hubspot.com/t/creating-custom-events-using-javascript/133047/3 "2025-05-22T08:42:37Z")

</div>

Thanks Kosala!
