# Cookieless Tracking

In this day and age, opting out of cookies has become the default and tracking tools switching to cookie-less alternatives has become the fashion. Thankfully, the HockeyStack team follows the fashion trends.

The HockeyStack snippet that you receive when you sign up by default is modified for cookieless tracking:

Copy

```javascript
<script async data-apikey="YOUR_API_KEY" data-cookieless src="https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack.min.js"></script>
```

The `data-cookieless` attribute runs the script under cookieless tracking and removing that would automatically switch you to cookie-based tracking.

## But then how do you track unique visitors? <a href="#block-1a18d5f71c7b4cf792b0e7e398993949" id="block-1a18d5f71c7b4cf792b0e7e398993949"></a>

Although we can't disclose all the details, we use a fingerprint generated at the server and hashed (sha256) with a unique salt so that it would be impossible to obtain the original data from the fingerprint.

To create this fingerprint, we use data such as but not limited to:

* Device type
* Screen height, width, and depth
* Browser
* OS
* Browser language
* Browser version
* Plugins installed
* Extensions
* Country and city-level geolocation data
* Timezone

All this data is gathered through the browser, and its variety ensures that the fingerprint created is as unique as possible.

It is important to note that HockeyStack does not in any way store IP addresses or other PII (personally identifiable information) to create this fingerprint. The validity of the fingerprint relies on the combination of all these different datapoints. When hashed, it gives no one, including HockeyStack itself, to attain any further information about the visitor. `ec5d7eb1-4c2b-4da0-a214-c7059f1fa9e6` This is an example user id that was generated from the system. As you can see, it is impossible to decrypt but gives you an opportunity to record unique traffic.

If you have any concerns about how this fingerprinting technology complies with GDPR, you can read more about it here:

[🍪Reverting to Cookie-Based Tracking](https://docs.hockeystack.com/technical-details/tracking/how-does-cookieless-tracking-work/reverting-to-cookie-based-tracking)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hockeystack.com/technical-details/tracking/how-does-cookieless-tracking-work.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
