Contacts created by custom behavioural events going in as non-marketing contacts
SOLVE
Hello
We use a private app to send custom behavioural events to Hubspot via the API. This private app is set to create marketing contacts. However we are finding that contacts initially created by these events are being marked as non-marketing contacts. What can I do to ensure these contacts are created as marketing contacts?
I've tried every possibility, As results, you can try the following:
Double-check the API call being made by your Private App to create the contact. Make sure that the isMarketingQualified property is set to true in the request payload.
Check if there are any workflows or automation rules in place that may be changing the contact's marketing status after it's created. In some cases, workflows or rules may be automatically updating the contact's properties, including the marketing status, based on certain criteria or actions.
Verify if the contacts being created through the Private App are meeting the marketing contact criteria in HubSpot. For example, a contact must have a valid email address and be associated with a company record to be marked as a marketing contact.
To set contacts being created as non-marketing contact to marketing contact, there is a toggle in HubSpot settings.
Apps connected to HubSpot via API key or OAuth can create contacts and automatically set them as marketing contacts.
To set contacts created by API key apps as marketing contacts, toggle the HubSpot API key switch on in the Marketing contacts section of the Integrations menu.
To set contacts created by OAuth or app marketplace apps as marketing contacts, toggle the switch on for the relevant apps in the Your connected apps section of the Integrations menu.
Only contacts created after the toggle has been switched on will be created as marketing contacts.
You can't modify the Marketing contact status property using HubSpot’s API endpoints.
All apps connected to your portal will be listed in the Your connected apps section, even if they don't create contacts.
Contacts created by custom behavioural events going in as non-marketing contacts
SOLVE
Hi, thanks for your reply @himanshurauthan . I can confirm that I've triple checked and both our Private App and our API key are set to create marketing contacts. Any other ideas?
I've tried every possibility, As results, you can try the following:
Double-check the API call being made by your Private App to create the contact. Make sure that the isMarketingQualified property is set to true in the request payload.
Check if there are any workflows or automation rules in place that may be changing the contact's marketing status after it's created. In some cases, workflows or rules may be automatically updating the contact's properties, including the marketing status, based on certain criteria or actions.
Verify if the contacts being created through the Private App are meeting the marketing contact criteria in HubSpot. For example, a contact must have a valid email address and be associated with a company record to be marked as a marketing contact.
I don't see an `isMarketingQualified` property on my custom behavioral event that triggers when a visitor provides their email address on my site. There are only these default properties that HubSpot automatically captures.
Is the `isMarketingQualified: true` something that needs to be passed in the "identify" or the "trackCustomBehavioralEvent"?
```
_hsq.push(["identify",{
email:emailAddress,
is_marketing_qualified: true // Does this need to be passed here?
}]);
```
```
_hsq.push([
'trackCustomBehavioralEvent',
{
name: pe1234567_email_provided,
properties: {
options // Does `is_marketing_qualified: true` need to be passed here?