Using Cloudflare Workers
Last updated
Last updated
Please use at least version 1.6.0
of @spindl-xyz/attribution
or @spindl-xyz/attribution-lite
for this feature.
Make sure you're logged into . Workers are really easy to set up and allow up to 100,000 free requests per day on the .
From Cloudflare dashboard, select: Workers & Pages
> Overview
> Create application
> Create Worker
. At this point, you can either keep the random worker name or choose your own. Click Deploy
once done.
Click Edit code
or Quick edit
once the worker is set up and paste the code. You should now be seeing a code editor for the worker. You can copy/paste code below which will forwards the traffic and data to our server on spindl.link
When done, click "Save and deploy".
Copy the xxx.workers.dev
domain that you just created! Please make sure that domain doesn't include any common words that are more likely to be blocked by ad blockers including track
, analytics
and spindl
In the sdindl sdk configure object, paste the worker url as the host
: