# Server Logs & Hubspot

**URL:** <https://community.hubspot.com/t/server-logs-hubspot/14822>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [June 17, 2019, 10:12pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822 "2019-06-17T22:12:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrich](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrich/32/26012_2.png) [@mrich](https://community.hubspot.com/u/mrich)\
**Post date:** [June 17, 2019, 10:12pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/1 "2019-06-17T22:12:48Z")

</div>

Hey everyone.

I am building out our hubspot integration for our website. We’d like to set up visitation tracking. One of our engineers indicated it might be sensible for us to do this tracking on the serverside, rather than installing hubspots tracking code.

Is that possible? Are there any examples of how you would do this? I’m currently on marketing / sales professional.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 18, 2019, 1:16pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/2 "2019-06-18T13:16:58Z")

</div>

Welcome, @mrich.

At this time, it’s not possible to implement HubSpot page tracking server-side. All of the [Tracking Code API](https://developers.hubspot.com/docs/methods/tracking_code_api/tracking_code_overview) methods leverage the embedded script loader except:

- The [Events HTTP API](https://developers.hubspot.com/docs/methods/enterprise_events/http_api), which requires an _Enterprise_ HubSpot subscription.
- The [Timeline API](https://developers.hubspot.com/docs/methods/timeline/timeline-overview), which can be used to log custom timeline events.

Neither of these alternative solutions are as robust and flexible as native HubSpot page tracking, however. For example, their statistics cannot be pulled from the [Analytics API](https://developers.hubspot.com/docs/methods/analytics/analytics-overview).

Does your team have specific concerns with the [HubSpot tracking code](https://knowledge.hubspot.com/articles/kcs_article/reports/install-the-hubspot-tracking-code) on your site?

Please let me know if you have additional questions or if I have misunderstood you.

---

<div class="post-metadata">

**Author:** ![mrich](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrich/32/26012_2.png) [@mrich](https://community.hubspot.com/u/mrich)\
**Post date:** [June 18, 2019, 6:35pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/3 "2019-06-18T18:35:16Z")

</div>

\> Does your team have specific concerns with the [HubSpot tracking code](https://knowledge.hubspot.com/articles/kcs_article/reports/install-the-hubspot-tracking-code) on your site?

It seems the hubspot tracking code wouldn’t be able to track page visits on our native mobile apps if it’s a js clientside library only. Server side logging / tracking would enable us to collect data from all of our platforms. Is that not supported in HubSpot?

Also, Segment seems to imply [they can send data over to hubspot from server side logging](https://segment.com/docs/destinations/hubspot/) (under the ‘server’ section). Isn’t that implying you can send page visits over from serverside logging or am I misreading that?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 18, 2019, 8:41pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/4 "2019-06-18T20:41:48Z")

</div>

Hi, @mrich.

Correct, HubSpot does _not_ support server-side page view tracking. The closest two solutions are the ones I outlined above.

[Segment’s documentation](https://segment.com/docs/destinations/hubspot/) could be a bit clearer. The `analytics.track` method described in the _Server_ section (beginning with the sentence “When calling from any of our server-side sources”) uses the [Events HTTP API](https://developers.hubspot.com/docs/methods/enterprise_events/http_api%5D) I mentioned earlier. This process is distinct from the [page view tracking](https://developers.hubspot.com/docs/methods/tracking_code_api/track_page_view) of the JavaScript snippet.

This server-side endpoint leverages custom events and so requires an _Enterprise_ HubSpot subscription. Segment’s documentation notes this in the preceding paragraph:

**“IMPORTANT: You must have a HubSpot Enterprise account for traits from an `identify` call to be passed through to your `track` call and be successfully sent as a [custom event to HubSpot](https://knowledge.hubspot.com/articles/kcs_article/events/create-custom-events).”**

---

<div class="post-metadata">

**Author:** ![mrich](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrich/32/26012_2.png) [@mrich](https://community.hubspot.com/u/mrich)\
**Post date:** [June 18, 2019, 9:27pm UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/5 "2019-06-18T21:27:14Z")

</div>

Cool, that answers my questions. Thanks @IsaacTakushi

---

<div class="post-metadata">

**Author:** ![ThomasVisser](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/thomasvisser/32/32521_2.png) [@ThomasVisser](https://community.hubspot.com/u/ThomasVisser)\
**Post date:** [July 28, 2021, 8:24am UTC](https://community.hubspot.com/t/server-logs-hubspot/14822/6 "2021-07-28T08:24:13Z")

</div>

Hi Isaac,

I was wondering if it still not possible to implement page tracking server-side. Main reason for asking is that Safari is deleting first party cookies after one day and more browsers will follow.. Now we continuously have to rely on the visitor opening the e-mail in order to track behaviour (and the actions within a workflow).

Thanks in advance for your response.
