- Fastly Compute@Edge
- Cloudflare Workers
- Vercel Edge Functions
- AWS Lambda with CloudFront Lambda@Edge function
- Akamai Edge
Tracking in serverless environments
Most serverless edge compute providers, including AWS, Akamai, Vercel, and Fastly, charge based on the CPU time your functions consume. Waiting for tracking requests to complete at the edge increases execution time and costs. To optimize performance and reduce expenses, Kameleoon recommends performing tracking on the client side. To implement client-side tracking, use one of the following methods:- Engine tracking code: Use the
getEngineTrackingCode()method to generate a tracking script that runs in the client browser. - JavaScript SDK: Load the Kameleoon JavaScript SDK on the client side for tracking. Because the edge worker handles bucketing and experiment variation decisions, the client-side SDK only manages tracking and does not require variation configuration.