# Add a JavaScript file to HubSpot

**URL:** <https://community.hubspot.com/t/add-a-javascript-file-to-hubspot/45480>\
**Category:** Data Hub\
**Created:** [October 18, 2021, 7:56am UTC](https://community.hubspot.com/t/add-a-javascript-file-to-hubspot/45480 "2021-10-18T07:56:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MStoja](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mstoja/32/43872_2.png) [@MStoja](https://community.hubspot.com/u/MStoja)\
**Post date:** [October 18, 2021, 7:56am UTC](https://community.hubspot.com/t/add-a-javascript-file-to-hubspot/45480/1 "2021-10-18T07:56:58Z")

</div>

Hi Hubspot Support,

I would like to import a JavaScript file to Hubspot [Add a JavaScript file to HubSpot](https://knowledge.hubspot.com/design-manager/add-a-javascript-file-to-hubspot)

Can I call any hubspot variable in the Javascript file that I will upload.For example can I have the contact ID/first\_name/last\_name of the user in the JS file that I uplaod.

Many thanks,

---

<div class="post-metadata">

**Author:** ![jbogaert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbogaert/32/33027_2.png) [@jbogaert](https://community.hubspot.com/u/jbogaert)\
**Post date:** [October 18, 2021, 12:54pm UTC](https://community.hubspot.com/t/add-a-javascript-file-to-hubspot/45480/2 "2021-10-18T12:54:22Z")

</div>

Hi @MStoja I believe this is a question better asked in the [Developers forum](https://community.hubspot.com/t5/CMS-Development/bd-p/designers_support). Through Operations Hub you can’t add JS files to HubSpot.
