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.

Disable & reactivate a site

Disabling a site pauses personalization for it without deleting anything. Your settings, snippet and history stay in place, and you can reactivate the site anytime. You'll find both controls in the site's Danger zone.

  • Disable: adfit stops personalizing the site. Disabling is always allowed.
  • Reactivate: adfit resumes personalizing the site, subject to your plan's active-site limit.

Disabling frees up a domain slot

Disabled sites don't count toward your plan's active-site limit. If you're at your limit and want to add or reactivate another site, disable one first, or move to a larger plan. If a reactivation would exceed your limit, adfit asks you to disable another site first.

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, disable 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.