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 Setup page. 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 Setup page, choose Rotate token and confirm with Rotate code. 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

    Open the site's Danger zone and, under Revoke the install code, choose Revoke immediately and confirm. adfit generates a new install code and invalidates the old one at once. The Setup page points you there with the line To stop the code immediately, use the Danger zone.

  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.
  • Your subscription is paused: the control reads Resume subscription and takes you to Billing.
  • Your first payment hasn't gone through: the control reads Complete payment and takes you to Billing.
  • There's a problem with your payment: the control reads Contact support and opens an email to our support team. Your site starts again automatically once the payment is settled.

When you turn a site back on, adfit automatically restarts A/B tests that ended because your subscription was paused, because of a payment problem, or because your plan limits were applied, unless one of the changes described in Resume your subscription happened in the meantime.

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. For AI features the total number of sites counts instead, active and paused: see Paused sites and AI features.

Paused sites and AI features

A site can use AI features, such as analyzing ads or the site itself, extending or regenerating a personalization, and describing or uploading images, in any of these cases:

  • The site is active.
  • Your plan allows an unlimited number of sites.
  • Your account has no more sites in total than your plan includes. For this, adfit counts all of your sites, paused ones too.

So pausing a site does not switch its AI features off. A paused site in an account within its plan's site limit keeps using them, and work that is already scheduled runs to the end.

It is different when your account has more sites than your plan includes, for example after a downgrade. A paused site in that situation can't start AI features, and you can't upload new images to it. Images already in its library stay available to pick, you can still delete images, and you can still upload ad files; only the analysis of those files is locked. When you try, adfit tells you that the site is paused and your plan includes fewer sites than your account has.

To use AI features on that site again, do one of these:

  • Activate the site. If your plan's active sites are full, adfit offers the swap described above.
  • Delete a site you no longer need, so that your account is back within your plan.
  • Upgrade your plan to one that includes more sites.

The Danger zone

Every site has a Danger zone, reached from the bottom of the site's left sidebar. It holds the actions that are hard or impossible to undo, kept apart from the everyday settings. At the top it has the card to pause or reactivate the site (see above), and below it the Danger zone card with up to three rows:

  • Revoke the install code: Immediately invalidate the current code if it may be compromised. This breaks the live snippet until you reinstall (no 48-hour grace window). The button is Revoke immediately. See Revoke the install code immediately.
  • Clear all stored page data: Deletes what adfit read from your pages. Your page list, ads and personalizations stay. Your site itself is not touched. adfit reads your pages again the next time it needs them. The button is Clear page data. It covers every page of the site, including pages that are not in your Pages list. If adfit has not stored anything yet, the button is greyed out and the row says adfit has not stored any page data for this site yet. See Clear what adfit stored.
  • Delete this site: Permanently removes the site and all page data adfit stored. This can't be undone. The button is Delete site. See Delete a site.

Delete a site

Deleting a site is permanent. It removes the site and all page data adfit stored 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

    At the bottom of the site's left sidebar, open the Danger zone page 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.