Contact support

We reply by e-mail, usually within two days.

Google reCAPTCHA checks this submission against abuse; data is sent to Google. The script loads only when this form is opened.

← All posts

Moving a site without losing the count

Migrating a website to a new hosting provider, changing domain names, or adopting a modern content management system involves numerous structural adjustments. Preserving the historical record accumulated by an established image counter requires understanding precisely what maintains the continuous tally.

the same image tagat the new addressthe total continuesthe number lives with the identifier in the tag, not with the domain name

What actually carries the total

The entire counting mechanism relies strictly on the unique identifier embedded within the image source address. As long as the specific target path pointing to the tracking endpoint remains identical during and after the transition, the accumulated numbers stay securely preserved within the database records.

Everything else in the address is decoration. The domain that serves the page, the protocol, the folder structure of the new system — none of them appear in the record that holds the number. What appears is the identifier, and it is usually a short run of digits in the middle of the tag.

The order of the steps

Executing a successful migration follows a clear operational sequence. Before altering DNS records or transferring underlying database files, verifying that the counter snippet is properly copied into the new system templates prevents accidental data interruptions.

The order matters because the two halves fail differently. A snippet copied but not yet reachable produces a gap of a few hours in the record, which is survivable. A domain moved before the snippet was copied produces a page that counts nothing at all, and nobody notices until somebody opens the statistics a fortnight later.

A short overlap is worth arranging wherever the hosting allows it. Running the old and the new location together for a day means the counter is reachable from either, and the record has no gap that has to be explained afterwards.

What goes wrong, and how it looks

Potential complications usually arise when domain redirections are configured improperly or when the structural path of the image tag gets modified during code cleanup. Maintaining absolute consistency in the source string ensures that the historical progression continues seamlessly from the exact moment the new server configuration goes live.

Two failures account for most of the damage. The first is a code cleanup that rewrites the image address into the site's own folder structure, which is exactly the one thing that must not change. The second is a redirect that answers the image request with the page instead of the picture; the counter then receives something it cannot draw, and the tally stops without any visible error.

Both are found the same way and in under a minute: open the image address on its own and see whether a picture arrives. That single check, done once before the old hosting is cancelled, is the difference between a move and a loss.

Advertisement