Follow the steps below in order. If you keep v3 working while you validate v4, you can roll
forward safely and avoid user impact.
Step 0: Collect Inputs (no changes yet)
You should have:- Your current integration domain (example:
https://metrics.yourwebsite.com) - Your current proxy secret (
FPJS_PROXY_SECRETproperty sensitive variable) - Your current v3 integration path variables:
FPJS_INTEGRATION_PATH(found in the path match criteria of the Fingerprint rule)FPJS_AGENT_PATH(found in the path match criteria of the Fingerprint > Origin for Agent rule)FPJS_RESULT_PATH(found in the path match criteria of the Fingerprint > Origin for Ingress rule)
- Your public API key
- Your region (example:
us,eu,ap)
After migration is complete and your website is fully on agent v4, only
FPJS_INTEGRATION_PATH is needed.
FPJS_AGENT_PATH and FPJS_RESULT_PATH related configs can be removed.Step 1: Upgrade your Akamai integration
Update the Akamai property configuration to a version that supports JavaScript Agent v4. Choose your deployment method below.1.1 Using Terraform
-
Update your
akamai_property_rules_templatevariable blocks:- Remove
fpjs_agent_pathandfpjs_result_pathvariables. - Add the new
fpjs_integration_path_escapedvariable.
main.tf - Remove
-
Download the latest
terraform-fingerprint-property-rules.jsonandterraform-fingerprint-property-variables.jsonfiles from the latest release and replace the existing ones in yourrulesdirectory. -
Run
terraform planto review your changes. -
Run
terraform apply.
1.2 Using Akamai Property Manager API (PAPI)
-
Clone the Akamai proxy integration repository:
-
Install dependencies:
-
Generate the patch body. Note that
--agent-pathand--result-pathare no longer needed: - Follow the PAPI deployment steps (clone property version, remove existing Fingerprint artifacts, patch, activate) as described in Deploy Akamai proxy integration using PAPI.
1.3 Verify
Acceptance criteria:- The integration can still serve v3 agent download and identification requests.
- The integration can also route v4 requests, for example requests under
/FPJS_INTEGRATION_PATH/web/v4/....
-
Open
https://metrics.yourwebsite.com/FPJS_INTEGRATION_PATH/statusand confirm the integration is healthy. - Confirm your existing (v3) production client still works and can identify.
-
Validate v4 routing through the proxy with a quick test:
NPM
Step 2: Validate v4 routing before changing your production client
Before flipping your app, test v4 through the proxy. Options:- Use a staging site / feature flag to load agent v4.
- Temporarily run agent v4 in a dev environment.
- The agent script loads through the proxy (no ad blocker or CDN errors)
- You may use browser dev tools’ network tab to confirm the script is loaded from the proxy.
- Identification requests go through the proxy (not directly to Fingerprint default endpoints)
- Results are returned successfully
Step 3: Update your application to JavaScript Agent v4
Update your website to load and initialize agent v4 using your proxy base URL. Replace the placeholders with your values:Step 4: Monitor and finalize
After rollout:- Monitor proxied traffic and error rate from the integration status page in the Fingerprint Dashboard.
- Confirm the majority of traffic is using v4 paths.
- If you introduced any temporary parallel paths for testing, remove them.
- When you are confident no clients use v3, you can remove v3-specific configuration:
- Terraform: The
fpjs_agent_pathandfpjs_result_pathvariable blocks should already be removed from Step 1. - PAPI: The updated property rules no longer use
FPJS_AGENT_PATHandFPJS_RESULT_PATH, so no additional cleanup is needed.
- Terraform: The