# Auto-capture browser, version, etc. from a form?

**URL:** <https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175>\
**Category:** Tips, Tricks & Best Practices\
**Created:** [April 18, 2022, 11:42pm UTC](https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175 "2022-04-18T23:42:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGerring](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RGerring](https://community.hubspot.com/u/RGerring)\
**Post date:** [April 18, 2022, 11:42pm UTC](https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175/1 "2022-04-18T23:42:18Z")

</div>

Hi All,

We’ve got a Hubspot “Contact Us” form, and this form can be used to report product issues, e.g. bugs on our website.

Is it possible (and legal?) to auto-collect browser session data of the person completing the form?

e.g. the sort of information that is captured and revealed here: [https://www.whatsmybrowser.org/](https://www.whatsmybrowser.org/)  
This information, if auto-stored with the submission data, might help us to debug an issue more efficiently.  
Thanks,  
Ross

---

<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:** [April 19, 2022, 4:18am UTC](https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175/2 "2022-04-19T04:18:50Z")

</div>

Hi @RGerring,

What you’re referring to is the user agent string, “a technical bit of information that your web browser sends every time you load any website; we have decoded it to figure out what browser, operating system and device you are using”. It can be read using JavaScript, see here: [User-Agent detection, history and checklist - Mozilla Hacks - the Web developer blog](https://hacks.mozilla.org/2013/09/user-agent-detection-history-and-checklist/)

Using the HubSpot forms API, you could integrate the information from the article above with the approach shared here: [How can I collect current page URL in form?](https://community.hubspot.com/t5/APIs-Integrations/How-can-I-collect-current-page-URL-in-form/m-p/258170)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![RGerring](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RGerring](https://community.hubspot.com/u/RGerring)\
**Post date:** [April 19, 2022, 6:29am UTC](https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175/3 "2022-04-19T06:29:37Z")

</div>

Nice, thanks!

---

<div class="post-metadata">

**Author:** ![RGerring](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RGerring](https://community.hubspot.com/u/RGerring)\
**Post date:** [April 19, 2022, 8:39am UTC](https://community.hubspot.com/t/auto-capture-browser-version-etc-from-a-form/55175/4 "2022-04-19T08:39:01Z")

</div>

p.s. Would be AMAZING if Hubspot offered this up as a something we could check a box to auto-include in forms, e.g. like the GDPR options, etc.
