Opens in a new tab

Smart language routing

One link.
Every language.

Put one short link in your profiles. A free Cloudflare Worker reads each visitor's browser language and sends them to that language's bio page. Fill in your details below and copy the finished code; no coding needed.

How it works

Set up once, share one link

1

Create your bio pages in WP LinkCanvas

Add your languages in WP LinkCanvas. Each one gets its own title, bio, links and address, such as /links/ for your main language and /ar/links/ for Arabic.

2

Generate your Cloudflare Worker code below

Enter your domain, your bio page path and your languages. The generator writes the Worker code for your setup.

3

Deploy to Cloudflare Workers

Paste the code into a new Worker on a free Cloudflare account. Give it a short address such as start.yourdomain.com. That address is your new bio link.

4

Share one link everywhere

Put the short link in your Instagram, TikTok or YouTube profile. Visitors whose phone is set to Arabic get your Arabic page; everyone else gets the language that fits, or your main page.

Tag each profile's link for accurate tracking. Instagram and TikTok often hide where a visit came from. Add the platform to the link you put in each profile, such as start.yourdomain.com/?utm_source=instagram. The Worker passes it on, and WP LinkCanvas uses it for link attribution and source routing.
Your domain doesn't have to be on Cloudflare. Only the Worker runs on Cloudflare, and its free plan is enough. Without Cloudflare DNS, use the free workers.dev address Cloudflare gives the Worker, or add a redirect record at your DNS provider (Bunny DNS has one) that sends your short domain to it. If you tag your profile links, check that the redirect keeps the query string.
Worker code generator

Build your smart routing Worker

Fill in your details and the code updates as you type. Add one row for each language you set up in WP LinkCanvas.

Configure your Worker
Your Worker code

      
Paste this into a new Cloudflare Worker. Ready to deploy as-is.
Deploy your Worker

Put your Worker live

1

Log in to Cloudflare

Go to dash.cloudflare.com and open Workers & Pages. A free account is enough.

2

Create a new Worker

Click Create application and choose Start with Hello World. Name it something like smart-bio-link and click Deploy. Cloudflare's menus change from time to time, so the labels may differ slightly.

3

Paste your generated code

Click Edit code, replace everything in the editor with the code you copied above, and click Deploy.

4

Add your short domain (recommended)

The Worker already works at its free *.workers.dev address. For a shorter link, open the Worker's Settings, then Domains & Routes, and add a custom domain such as start.yourdomain.com. This needs your domain on Cloudflare DNS; otherwise use a redirect record as described above.

5

Test it, then share it

Open the link with your browser set to each of your languages to check where it goes. Then put it in your Instagram, TikTok and YouTube profiles, each with its own ?utm_source= tag.

Ready to build your
multilingual bio page?

WP LinkCanvas makes the bio page in every language on your own site. The Worker sends each visitor to the right one.

Save to list

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only