APIs & Integrations

rafaelappmax
Member

How to define to identify a URL in the traffic with Direct URL?

"This contact was created from Direct traffic from unknown URL"
My contact:

rafaelappmax_0-1685534929642.png

I can't get the url, I need guidance. I'm using api v3 in php.

0 Upvotes
3 Replies 3
TomM2
Key Advisor | Partner
Key Advisor | Partner

How to define to identify a URL in the traffic with Direct URL?

Hey @rafaelappmax this means the HubSpot tracking code was unable to define the url that directed the contact to your website. HubSpot could not define this so it's not an issue of it being logged in the backend and not shown in the UI, this was unable to be defined by HubSpot at all so you're unable to pull it, even through an api. 

If you're using a third party form to send data to HubSpot and this is appearing for everyone, you need to ensure you have the tracking code installed on the sites with your forms and that you're including the hutk value from the browser the hs_context block in every submission. 

It's worth noting however that this occasionally appearing is relatively common in this day and age, the visitor may have a privacy focused browser, cookie blocking extensions or may have just manually blocked cookies/scripts on their browser, which would stop the HubSpot tracking script from capturing their referral/tracking information. 

Tom Mahon tom@hub-spark.com
HubSpot Expert | Digital Marketing Specialist | Community Champion
HubSpark

Book a meeting

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


rafaelappmax
Member

How to define to identify a URL in the traffic with Direct URL?

I'm using the api to create contact. I don't have cookies or hs_context involved in my flow, what should I do in that case?

 
 

 

 

0 Upvotes
TomM2
Key Advisor | Partner
Key Advisor | Partner

How to define to identify a URL in the traffic with Direct URL?

Hey @rafaelappmax are you using the contacts api for this? If so you can't include a cookie. If contacts are coming from a website and filling out a form that you're pushing data from to HubSpot you really should use the form submission endpoint as this can include the hutk token to track analytics. If you want to continue creating contacts via the contacts api you'll need to look into also sending web analytics events to the contact records too.

Tom Mahon tom@hub-spark.com
HubSpot Expert | Digital Marketing Specialist | Community Champion
HubSpark

Book a meeting

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