APIs & Integrations

uteb
Member

Form API submission does not set tracking cookie

Hi, 

I am trying to set the hutk for existing contacts through your form api. It works successfully when I submit a subscription type, we are using it in production. (I am referring to this endpoint: https://developers.hubspot.com/docs/methods/forms/submit_form_v3)

Now I want to use it to just set the cookie, with no subscription update. I tried a post with empty data except for email and hutk. I get status 200, the submission is registered in the profile, but I still see no page views. Here an example contact I have updated in that way.
https://app.hubspot.com/contacts/3418445/contact/126151

Is there a way for me to check if there is any or if so which cookie is associated with a contact?

 

Also I get a lot of the <Some of this contact's activity has been excluded based on their IP address.> on our testing postal. Which clearly we all use for testing purposes with unusual activity. Is there a way to deactivate this security layer on a single portal?

 

Thanks

0 Upvotes
2 Replies 2
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Form API submission does not set tracking cookie

Hey @uteb ,

 

You should be able to set the tracking cookie without including consent info. It looks like that particular contact does have a cookie associated, which you can generally confirm by using the 'Get contact by usertoken' endpoint:

https://developers.hubspot.com/docs/methods/contacts/get_contact_by_utk

 

The IP filtering is generally set in your account's settings page, and can be disabled by removing the filtering rules in the settings: https://knowledge.hubspot.com/articles/kcs_article/reports/exclude-traffic-from-your-site-analytics

0 Upvotes
uteb
Member

Form API submission does not set tracking cookie

Hi Derek, 

 

now - if I dont know the value of the cookie, the endpoint to find a contact via cookie does not exactly help me. Is there another way to check for the cookie (maybe also non-API way) ? So e.g. a non-tech team member can access that property aswell to confirm why page views are missing. 

 

Why then in the contact I sent you dont I have page views if the cookie is associated?

 

The documentation does not say how to remove my IP from the excluded lists. Is there a way at all? 

 

Thanks

0 Upvotes