
The benefits of using the Fastly VCL Proxy 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, but 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 Fastly features like VCL and traffic reports.
- With the Fastly VCL Proxy 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: Fastly VCL Proxy Integration drops all the cookies sent from the origin website. The code is open-source, so this behavior can be transparently verified and audited.
- Easy to meet compliance and auditing requirements.
Integration setup overview
The integration setup consists of the following three steps. Each step is described in detail below.- Issue a proxy secret in the Fingerprint dashboard.
- Create integration path variables.
- Apply Fingerprint VCL and configuration values to your Fastly CDN Service.
- Configure the Fingerprint JavaScript agent on your website.
Step 1: Create a Fingerprint proxy secret
Issue a Fingerprint proxy secret to authenticate requests from your Fastly infrastructure.- Go to the Fingerprint dashboard and select your workspace.
- In the left menu, navigate to API keys.
- Click Create Proxy Key.
- Give it a name, for example,
Fastly VCL proxy integration. - Optionally, you can choose an environment for the proxy secret.
- By default, the proxy secret works for all environments in your workspace.
- A proxy secret scoped to a specific environment can only authenticate identification requests made with a public API key from the same environment.
- Click Create API Key.
Step 2: Create path variables
You need to set the path variables you will use throughout your Fastly configuration (Step 3.1) and the JS agent configuration on your website (Step 4). These values are arbitrary. Just decide what your values are and write them down somewhere. In this guide, we will use readable values corresponding to the variable names to make it easier to follow:INTEGRATION_PATH in this guide, you should use your random value instead.
Step 3: Add Fingerprint VCL to your Fastly CDN Service
You can choose from two available installation methods.Using Terraform
If you manage your infrastructure using Terraform, you can use the official Fastly VCL Proxy Integration Terraform module. This is the recommended method for deploying the integration. It provides a streamlined, versioned setup with fewer manual steps. Continue to Deploy Fastly VCL Proxy integration using Terraform.Deploying Manually
If you don’t use Terraform, you can manually deploy the integration using the Fastly web interface. This method requires more manual steps. If you prefer the manual installation method, continue with Deploy Fastly VCL Proxy integration manually.Step 4: Configure the Fingerprint JavaScript agent on your client
Use the path variables created in Step 2 to construct the script download and identification endpoint URLs. Configure the Fingerprint JS Agent on your website accordingly:Parameter URL nuances
- Note that the import
urlfor the CDN installation method andscriptUrlPatternused by NPM packages are similar but different and cannot be used interchangeably. - Pay attention to differences in query parameters:
- Pass region to the
endpointparameters in the following format:?region=eu. The value needs to reflect the region of you application. - Leave the
scriptUrlParamparameter as displayed here:?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>. TheapiKeyversionandloaderVersionparameters will be replaced by the values in the NPM package automatically. Do not alter them manually.
- Pass region to the
Monitoring and troubleshooting the integration
Go to Dashboard > SDKs & integrations > Fastly VCL to see the status of your integration. Here 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, incorrect, or environment-mismatched proxy secret).

- Go to the integration’s status page at
https://yourwebsite.com/INTEGRATION_PATH/statusto check if the integration is running and all required configuration variables have been set correctly. - When contacting our support team, please provide them with the VCL file of your CDN service.
- Navigate to CDN > CDN Services, open your CDN service, and pick the Active version.
- Click Show VCL and then Download.

Cost Calculation
The resources required by the proxy integration fit within the Fastly Free Tier:- The integration uses 4 out of the 5 available Origins per CDN Service.
- The integration uses 4 out of the 1000 available Dictionary Items.
- By default, the integration uses 200 out of the 1000 theoretically available connections per CDN service. Please contact our support team if you need to configure this value.