Tips, Tricks & Best Practices

RGerring
Participant

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

SOLVE

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/

This information, if auto-stored with the submission data, might help us to debug an issue more efficiently.

Thanks,

Ross

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

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

SOLVE

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: 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?

 

Hope this helps!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

3 Replies 3
RGerring
Participant

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

SOLVE

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.

0 Upvotes
RGerring
Participant

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

SOLVE

Nice, thanks!

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

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

SOLVE

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: 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?

 

Hope this helps!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.