APIs & Integrations

martinbarcelona
Participant

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?

Thank you

0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Contacts created by custom behavioural events going in as non-marketing contacts

SOLVE

Hello @martinbarcelona 

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 hope this helps!

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

0 Upvotes
5 Replies 5
himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Contacts created by custom behavioural events going in as non-marketing contacts

SOLVE

Hello  @martinbarcelona 

To set contacts being created as non-marketing contact to marketing contact, there is a toggle in HubSpot settings.

  1. Apps connected to HubSpot via API key or OAuth can create contacts and automatically set them as marketing contacts.
  2. 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.
  3. 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.
  4. Only contacts created after the toggle has been switched on will be created as marketing contacts.
  5. You can't modify the Marketing contact status property using HubSpot’s API endpoints.
  6. All apps connected to your portal will be listed in the Your connected apps section, even if they don't create contacts.

     

    Check this link out for more information: https://knowledge.hubspot.com/integrations/manage-marketing-contacts-settings-for-your-integrations#...

 

Digital Marketing & Inbound Expert In Growth Hacking Technology
martinbarcelona
Participant

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?

0 Upvotes
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Contacts created by custom behavioural events going in as non-marketing contacts

SOLVE

Hello @martinbarcelona 

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 hope this helps!

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes
WMusgrove
Member

Contacts created by custom behavioural events going in as non-marketing contacts

SOLVE

Hi @himanshurauthan 


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.

WMusgrove_0-1697734533431.png

 

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?
        },
      },
]);

```

 

Thanks!

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Contacts created by custom behavioural events going in as non-marketing contacts

SOLVE

Hi, @martinbarcelona 👋 Thanks for reaching out. Hey, @coldrickjack @LMeert @himanshurauthan, do you have any experience with what @martinbarcelona is describing? 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes