
- Fingerprint infrastructure.
- Cloudflare worker — created and managed by Fingerprint, but running in your Cloudflare account.
- Fingerprint JavaScript agent installed on your website.
The benefits of using the Cloudflare Integration
- Significant increase in accuracy in browsers with strict privacy features such as Safari or Firefox.
- Cookies are now recognized as “first-party.” This means they can live longer in the browser and extend the lifetime of visitor IDs.
- Ad blockers will not block our Fingerprint JS agent from loading. Attempts to connect to an external URL will be stopped by most ad blockers while attempts to connect to the same site URL will be allowed.
- Ad blockers will not block our identification requests since they are sent to the specific path or subdomain that belongs to the same site.
- Insight and control over the identification requests that can be combined with other Cloudflare features like WAF or Analytics.
- With the Cloudflare Integration, you can manage unlimited subdomains and paths and provide Fingerprint services to all your customers at any scale while benefiting from all the 1st-party integration improvements.
- Cookie security: Cloudflare integration drops all the cookies sent from the origin website. The worker code is open-source so this behavior can be transparently verified and audited.
- Easy to meet compliance and auditing requirements.
Setup
The Cloudflare configuration guide on the Fingerprint dashboard will help you set everything up step by step. You can start the guide by going to SDKs & integrations.Step 1: Follow the Cloudflare configuration wizard
- Navigate to SDKs & integrations, then select Cloudflare.

- After opening the Cloudflare configuration guide, click Connect.

- Optionally, you can scope the integration to a specific environment.
- By default, the integration works for all environments in your workspace.
- If you choose to scope the integration to a specific environment, the integration will only proxy identification requests made with public API keys from that environment.
- Add information about your Cloudflare account.

| Name | Example | Short description |
|---|---|---|
| Cloudflare Account ID | 88e2a7348d589a61edd0918e57fb136f | The Account ID obtained from the Cloudflare Dashboard. |
| Cloudflare API Token | YQSnnxWAQiiEh9qM58wZNnyQS7FUdoqGIUAbrh7T | API Token generated from the Cloudflare’s User Profile ‘API Tokens’ page. |
Cloudflare Account ID
The Account ID is required to deploy workers. Go to Cloudflare Workers and copy the Account ID.Cloudflare API Token
The API Token is required to deploy workers. Go to the API Tokens page, select Create Custom Token, and follow the steps below.- Type
fingerprint.comin the name field. - Add Account > Workers Scripts > Edit permission.
- Add Zone > Workers Routes > Edit permission.
- Select the account in the Account Resources.
- Select Specific zone > yourwebsite in the Zone Resources.
- Add IP Filtering > 3.23.16.20.
- Do not set any TTL.


API Token SafetyWhen creating an API Token, it is considered best practice to grant it as few privileges as possible. In the example above, the API Token has permissions to only manage workers in your account. Fingerprint will use your API Token for managing the Fingerprint Cloudflare Worker and nothing else.Fingerprint always encrypts customer data, including API tokens and configuration items. This guarantees that the data we get from our customers is securely transmitted and stored. The Client IP Address Filtering functionality adds an additional layer of security. Safelisting our public Cloudflare service IP address ensures that the API Token can only be used by Fingerprint services and no one else.
-
After entering Account ID and API Token, proceed to the next step.

-
Select the same domain you had created the API Token for before from the dropdown menu. If you don’t see the domain you wish to use, please contact our support team.

-
Confirm to start the deployment process. This process may take several minutes.

Step 2: Configure your Fingerprint client agent
Once the worker is deployed, you need to configure your client-side application accordingly. In this step, you can choose from a variety of frameworks, platforms, and approaches. You can always come back to SDKs & integrations to find code snippets for different frameworks that reflect your Cloudflare configuration setup.
Using Multiple Worker Routes
Cloudflare Integration uses Cloudflare Workers, which supports multiple routes. You can add more routes if you need to but don’t change the original worker route and configuration created by Fingerprint.Monitoring and troubleshooting the integration
You can go to Dashboard > SDKs & integrations > Cloudflare to see the integration status, usage statistics, and configuration. You can monitor:- If the integration is up to date.
- How many identification requests are coming through the integration (and how many are not).
- The error rate of proxied identification requests (caused by a missing or incorrect proxy secret).

Updating the Cloudflare token
If you accidentally delete the Cloudflare API token you provided us with, you can update it inside the Fingerprint dashboard.- Go to SDKs & integrations > Cloudflare and click Edit API token.

Deleting the integration
If something goes irreversibly wrong with your integration or Cloudflare worker configuration, you can delete everything and create a new integration from scratch.- Make sure your Fingerprint JavaScript agent is not using the integration URLs you are about to delete.
- Go to SDKs & integrations > Cloudflare and click Delete integration at the bottom of the page.
Alternative worker subdomain setup (for DNS-only domains)
The Cloudflare configuration guide above assumes your website is added to Cloudflare and proxied through Cloudflare (not DNS-only). If your website proxy status is DNS-only, the worker will not be accessible on the generated path and the provided code snippets will not work.
- Follow the installation steps above to deploy the proxy integration worker in your Cloudflare account.
- Go to your Cloudflare dashboard.
- In the left-hand navigation, click Workers & Pages.
- Click on your Fingerprint Cloudflare worker. It will be named like fingerprint-pro-cloudflare-worker-yourwebsite-com.
- At the top, click Settings, then look for Domains & Routes.
- Click + Add and select Custom domain.
- Enter a subdomain like
metrics.yourwebsite.comand click Add domain to confirm. Avoid terms commonly blocked by ad-blockers likefingerprint,fpjs,track, etc.


endpoint: https://yourwebsite.com/VWmFUKL1dfIjc8gg/SjM9xGRJcN3lZycu becomes
endpoint: https://metrics.yourwebsite.com/VWmFUKL1dfIjc8gg/SjM9xGRJcN3lZycu.