Discussions

Ask a Question
Back to All

Can we generate visitor id (browser identification) on server side, using client request ?

I have a use case where we need visitor id on server side rendered pages, is it possible to generate visitor id using Fingerprint JS or Fingerprint PRO on server side ?

Admin(edited)

Hi Vishal,

Fingerprint (both JS and Pro) relies on collecting various browser attributes to generate a visitor ID for the browser. It's not possible to identify browsers on the server. You need to make the identification request in the browser using the JS agent, and then you can pass the visitor ID and request ID to the server as part of an HTTP request. Fingerprint Pro allows you to access identification events on the server using the Server API (you use the request ID from the browser to retrieve the full event on the server). You can also ingest identification events on the server as they happen using Webhooks.

It seems you are trying to personalize server-rendered pages using a Fingerprint visitor ID. That is not its intended use case, I think you might have a hard time hacking it together. You can easily personalize client-rendered pages using Fingerprint (see Personalization demo) or use regular cookies to personalize server-rendered pages.

Marked as answered by Juraj Uhlar

ο»Ώ