- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Not able to set company name (and other properties) via Identify JavaScript

Feb 20, 2018 7:41 PM
Hi there,
I’m trying to pass data from our web application into HubSpot via the Javascript Identify command. I’m successfully passing in firstname, lastname, email and phone, but when I try and pass in the company name I’m having no luck at all.
I’ve read elsewhere in the Forums that the domain name is a unique identifier for a company, and sure enough the email domain for my tests is being set as the company website/URL, however, the company name is empty.
Here’s my JavaScript code. As you can see, I’ve used trial and error to find the syntax which will drop it in to no avail.
var _hsq = window._hsq = window._hsq || [];
_hsq.push([‘setPath’, ‘/view_prospect_list’]);
_hsq.push([“identify”,{
email: “bbb-geoff.mcqueen@accelo.co.za”,
firstname: “Geoff”,
lastname: “McQueen”,
company_name: “company_name DEV Accelo”,
companyname: “companyname: DEV Accelo”,
company: “company: DEV Accelo”,
name: “name: DEV Accelo”,
phone: “+1 800.425.7315 x101”,
}]);
(pls forgive the bullsh*t smartquotes in the post above - I'm using proper ones)
Here’s a screenshot of the same contact being created - I’ll include one for the top to show some things going into the right place, and one below for the Company area which isn’t pretty. Link to view if you’re a HubSpotter with access to our account is link.
If we can’t pass in company details (given the B2B nature of our product/service) we’re going to have a really big challenge using HubSpot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content