AnonyViet Floating Banner

By anonyviet

0+ active installationsVersion 1.5.4

A floating banner on the right edge of the screen: sways, shows/hides on a timer, remembers dismissed visitors, rotates images/links, tracks clicks.

Description

AnonyViet Floating Banner displays an eye-catching floating banner fixed to the right side of the screen:

  • Sway animation – the banner gently swings back and forth to grab attention, with adjustable angle and speed.
  • Show/hide cycle – the banner flies in, stays for a few seconds, slides out, and repeats on your schedule.
  • Respectful dismissal – when a visitor clicks the × button, the choice is saved in a cookie (plus a localStorage backup) and the banner stays hidden for a configurable number of days, then shows again.
  • Random rotation – add multiple banner images and destination links; each page view shows a random image with a random link, chosen independently.
  • Redirect link builder – wrap destination links with random prefixes and suffixes to build redirect or campaign URLs. Example: prefix https://xyz.com/url= + link https://abc.com + suffix &123 → https://xyz.com/url=https://abc.com&123.
  • Click statistics – see which destination links get clicked and which posts or pages the clicks come from, broken down by day, week and month, with bar charts. History is kept for 60 days and can be cleared with one click.
  • Referrer privacy – banner links use rel="noreferrer", so the destination site never sees which site the click came from.

All settings live under Settings → AnonyViet Floating Banner; statistics under Settings → Thống kê Floating Banner. No coding required.

Developed by AnonyViet.

Installation

  1. Upload the anonyviet-floating-banner folder to the /wp-content/plugins/ directory, or install via Plugins → Add New → Upload Plugin. Do not keep the old fly-banner folder installed at the same time — delete it first (see FAQ below).
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings → AnonyViet Floating Banner to add banner images, destination links, prefixes/suffixes, and adjust the animation.
  4. View click statistics under Settings → Thống kê Floating Banner.

FAQ

I get a fatal error (“Cannot redeclare…”) when activating. Why?

You have two copies installed at once: the old fly-banner folder and the new anonyviet-floating-banner folder (both declare the same functions, because the 1.4.0 rename changed the folder name but not the function prefix). Delete the old fly-banner folder (Plugins → delete the old “Fly Banner”, or remove the folder in File Manager under wp-content/plugins/), keep only anonyviet-floating-banner, then activate again.

The banner still shows on other pages after I click ×. Why?

The dismissal is stored in a first-party cookie. Make sure your browser allows cookies, and note that www.example.com and example.com do not share cookies — use one canonical domain for your site.

Does the destination site know where clicks come from?

No. Banner links include rel="noreferrer", so the browser sends no Referer header. Affiliate parameters inside your own link still work normally.

How long is click history kept?

60 days. Older records are deleted automatically, and you can wipe the history at any time from the stats page.

Can I use different images and links?

Yes. Add as many banner images and destination links as you like — each page view picks a random image and a random link independently. You can also add multiple random prefixes and suffixes to build redirect URLs.

Changelog

1.5.4

  • Fixed installation instructions: they still named the old fly-banner folder, so following them created a second copy next to anonyviet-floating-banner and activation failed with a fatal “Cannot redeclare” error. Added a FAQ entry for that error.
  • Added a link to anonyviet.com in the plugin description.

1.5.3

  • Dismissal now stores the dismiss time: the banner shows again after the number of days set in “Remember dismissed for how many days”. Fixed a bug where the localStorage backup re-armed the dismissal forever, so the banner never came back.

1.5.2

  • Fixed translators comment placement for the month label.

1.5.1

  • Added missing translators comments for translation placeholders.

1.5.0

  • Added English/Vietnamese language support: all strings are translatable (English source, Vietnamese translation included) with a “Plugin language” option (Automatic / Tiếng Việt / English) in settings.

1.4.0

  • Renamed to AnonyViet Floating Banner (distinctive name).
  • CSS and JavaScript are now loaded through wp_enqueue_style/wp_enqueue_script (wp_add_inline_style/wp_add_inline_script); no more inline

1.3.5

  • Added option to hide the banner on desktop (PC).

1.3.4

  • Fixed automated review findings: proper output escaping, replaced date() with DateTime, raised minimum WordPress version to 5.3, shortened readme tags and description.

1.3.3

  • Added author credit (AnonyViet).

1.3.2

  • Added random prefixes and suffixes to build redirect links, with add/remove rows in settings.

1.3.1

  • Multiple banner images and destination links, each randomized independently per page view.

1.3.0

  • Banner image/link pairs (superseded by independent lists in 1.3.1).

1.2.0

  • Added click statistics (day/week/month views), per-link and per-post breakdowns, 60-day retention, and a clear-history button.

1.1.2

  • Added rel="noreferrer" so destination sites can’t see the referring site.

1.1.1

  • Dismissal hardening: pending timers are cleared on close, the cookie is written with both max-age and expires, and a missing cookie self-heals from localStorage.

1.1.0

  • Dismissal memory: once a visitor closes the banner it never shows again (cookie + server-side check).

1.0.0

  • Initial release: floating swaying banner with show/hide cycle and close button.