Sites & snippet

Rotate, revoke, disable & delete

Beyond installing the snippet, each site has a few lifecycle controls: rotating its install code when you want a fresh one, revoking it immediately if it might be compromised, pausing a site without losing your setup, and deleting it for good. Here's what each one does.

Rotate the install code

Each site's snippet contains a unique code. If you simply want a clean one (say you're rebuilding a site or tidying up), you can rotate it from the site's Snippet tab. Rotating generates a brand-new install code, and it's designed to be safe: nothing breaks the moment you rotate.

Your old code keeps working for 48 hours

After rotating, the old install code keeps working for 48 hours. That gives you time to swap in the new code without any gap in personalization. Your connection status is preserved: the site stays Connected the whole time.

  1. Rotate the code

    On the Snippet tab, choose Rotate code and confirm. adfit generates a new install code for you right away.

  2. Replace the embed code within 48 hours

    Copy the new embed code and replace the old snippet in your site's <head>, then save and re-publish. You have a 48-hour grace window to do this: during that time both codes work, so there's no rush and no downtime.

  3. You're done

    Once the new code is live, the old one simply stops working at the end of the grace window. There's nothing else to press. See Verify your connection if you'd like to confirm it's live.

Rotating again during the grace window

You can't start a second rotation while a grace window is still open: adfit asks you to wait until the current one ends (or use Revoke immediately below). This protects the code that's currently keeping your site live.

Revoke the install code immediately

Revoke immediately is for one situation only: when the current install code might be compromised, for example if it was exposed somewhere it shouldn't have been. Unlike rotating, a revoke has no grace window: the old code (and any open grace code) stops working at once.

This breaks the live snippet until you reinstall

Revoking immediately breaks the live snippet on your site: personalization stops until you install the new code. The connection status resets to Awaiting connection until adfit detects the new snippet. Use this only when you actually need to cut off the old code; for routine changes, rotate instead.

  1. Revoke the code

    On the Snippet tab, under Revoke the install code, choose Revoke immediately and confirm. adfit generates a new install code and invalidates the old one at once.

  2. Reinstall the new code

    Copy the new embed code and replace the old snippet in your site's <head>, then save and re-publish. Until you do, adfit can't connect and your pages show their original content.

  3. Reconnect

    Open your site once in a new tab so adfit detects the new snippet, and the status returns to Connected. See Verify your connection.

Rotate vs. revoke: which one?

Rotate for a routine, no-downtime code change: the old code lives on for 48 hours and your site stays connected. Revoke immediately only when a code may be compromised and you need it dead right now, accepting that the snippet stops until you reinstall.

Pause & reactivate a site

Pausing a site stops personalization for it without deleting anything. Its settings, snippet and history stay in place, and you can reactivate it anytime. You can pause or reactivate a site in three places: the State control in your Sites list, the Actions menu at the end of the site's row (the three-dots button), and the site's own Danger zone, where the button reads Pause site.

The Actions menu entry follows the site's state: an active site offers Pause, a paused site offers Reactivate, so you can switch either way without leaving the list. Without an active plan the entry reads Upgrade to activate instead and takes you to the plans page.

Pausing asks first, reactivating doesn't

Because pausing turns off personalization, adfit asks you to confirm (Pause this site?) before it pauses, wherever you start. Reactivating is a single click with no confirmation, unless your plan's active sites are full, in which case adfit offers a swap (below).

Swap active sites when your plan is full

Your plan sets how many sites can be active at the same time. If you're already at that limit and reactivate another site, adfit opens Swap active sites so you stay within your plan:

  • If only one site is active, adfit confirms the swap: reactivating your site will pause that one.
  • If several sites are active, you pick which one to pause in exchange.

Either way, adfit makes the change in a single step, so you never have more active sites than your plan allows. To run more sites at once instead of swapping, move to a larger plan.

Why a site is paused

A paused site shows what to do next, depending on why it's paused:

  • You paused it: reactivate it whenever you like.
  • A downgrade paused it and your plan now has room (for example after an upgrade): one click reactivates it, no swap needed.
  • Your plan's active sites are full: reactivating opens the swap above so you can choose which site to pause.
  • You have no active plan: the site stays paused and the control reads Upgrade to activate. Start a subscription to run it.

Paused sites and your plan limit

Paused sites don't count toward how many sites your plan can run at once, and they keep everything you set up. A downgrade pauses your extra sites rather than deleting them and keeps your newest ones active, so you can reactivate the ones you want later.

Delete a site

Deleting a site is permanent. It removes the site and the snapshots adfit has collected for it, and it can't be undone. If you only want to stop personalization for now, pause the site instead, and your setup is preserved.

  1. Open the Danger zone

    On the site's detail page, scroll to the Danger zone and choose Delete site.

  2. Type the domain to confirm

    To prevent accidents, adfit asks you to type the site's domain (for example example.com) exactly. The Delete site button stays disabled until it matches.

  3. Confirm

    Once confirmed, the site and its data are removed and you're returned to your Sites list. Deleting also frees up a domain slot on your plan.

Don't forget to remove the snippet

After deleting a site, remove its snippet from your website's <head>. The old embed code no longer does anything, but it's good housekeeping to take it out.