🎯 A Different Default Link Per Site

Run the scripts on several sites? Each one can send bare visits somewhere different, instead of every site sharing a single default.

This one needs a script update

The choice is made on your own server, so a site has to be running script version 1.4.0 or later before it can honour it. Nothing breaks if you never update — those sites simply carry on using your account default. Updating takes one file.

What It Does

Your account has one default link. It is what a visitor gets when they reach your redirect script without naming a link, or name one that doesn't exist. Until now every site you deployed to shared that one destination.

Now each site can point its default at any link you have already created:

Site Default Link A bare visit goes to
reviews.example.com hosting Your hosting offer
coupons.example.com blackfriday Your Black Friday offer
blog.example.com Account default Your default link

Because a site points at a link you already have rather than a bare URL, weighted split tests and partner labels keep working exactly as they do when someone asks for that link by name.

Updating a Site to 1.4.0

The same download and upload you did to install in the first place. Your links, your settings and your existing URLs are untouched.

Three Steps

  1. Go to Deploy in your dashboard, click Download, and choose Update existing scripts.
  2. Upload the files to the same folder your scripts are already in — the one holding index.php — replacing what is there.
  3. Visit any of your redirect links once. The scripts re-introduce themselves, and the Version column on your Registered Sites page turns green.
Upload to your existing scripts folder and nowhere else. The package contains an index.php, so putting it anywhere with other files — a WordPress root, for instance — will overwrite them.

Your saved links, click history and cached redirects are not part of the package and are left alone. Registering a second time does not create a second site: your installation is recognised by its URL and keeps the history it already has.

You do not need to run install.php again

That is only for a first install. Running it again rewrites your .htaccess, which would undo anything you have added to it. Nothing about the web server setup changes in this update, so leave it alone — one visit to any of your redirect links is all it takes.

If You Have Edited config.php

Re-uploading the package replaces config.php with a fresh one, which undoes changes you have made to it — a longer cacheTTL, most commonly. If that applies to you, upload only index.php instead and leave your config.php where it is. That is enough on its own: the new index.php adds what it needs on the first visit, provided the folder is writable.

If You'd Rather Not Update

That is a perfectly reasonable choice and costs you nothing. A site on an older script keeps serving your account default and behaves exactly as it does today — the same links, the same weighted splits, the same click tracking. Only the per-site default is unavailable to it.

You can still pick a default for that site now. It sits dormant and starts working the moment the site is updated, whenever that happens to be.

Checking It Worked

The Version column on your Registered Sites page turns green once the updated scripts have reported in. For a closer look, open the diagnostics page that ships with your scripts:

yourdomain.com/go/diagnostics.php?key=YOUR_FLUSH_KEY

Two rows there matter for this feature. Site ID shows whether the install knows which site it is, and Config Writable shows whether it is allowed to remember. If config.php is not writable the install cannot record its Site ID, and a per-site default will not take effect — everything else carries on working normally.

Choosing a Site's Default

There are two ways in, and they do the same thing. Most people are already on the Links page, so start there.

From Links

  1. Pick the site at the top of the page
  2. Click the star beside a link

The star marks that site's default. Click it again to clear it. Change the site at the top and the star moves to whatever that one uses.

From Registered Sites

  1. Find the site in the list
  2. Click Change in the Default Link column
  3. Pick a link, then Save default

Shows every site's default side by side, and what each link points to, which is the better view when you are setting several at once.

The Default Link column appears once you have more than one site registered. With a single installation there is nothing to vary, so it stays out of the way.

The chooser shows where each link actually goes, and marks split tests with the number of destinations they rotate between. Pick Account default to put a site back on the shared default link.

Your other sites are never affected, and the change reaches the site within a few minutes on the usual update cycle. The column shows every site's current default, so you can see the whole picture without opening anything.

How It Shows Up in Analytics

Clicks are counted against the link that actually served them. If reviews.example.com defaults to your hosting link, a bare visit there is reported under hosting — not under default — so your top-performing links stay honest.

Partner labels and weighted splits are reported the same way they always are. To see which site a click came from, use the Source Sites breakdown on your Analytics page.

Things Worth Knowing

Deleting a link a site defaults to

That site falls back to your account default. Nothing breaks, but the destination changes — so the delete confirmation names any sites it will affect before you go ahead.

Turning a link off

A deactivated link stops being served everywhere, so any site defaulting to it falls back to your account default until you turn it back on. Your choice is remembered in the meantime.

Your account default is still required

Every site falls back to it, so the default link cannot be deleted. You can point it anywhere you like.