🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Entry Sanitizer Premium Add-on Setup Guide

Updated 5 min read Gravity Forms Entries & Workflow
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Check the Rules of Each Form
  4. Step 3: Preview and Run a Cleanup
  5. Step 4: Backups, Log and Restore
  6. Step 5: Retention Rules
  7. Step 6: Privacy Requests
  8. Step 7: Staging-Safe Export
  9. WP-CLI
  10. Not Included in Version 1.0
  11. Troubleshooting & FAQ
  12. The preview shows 0 entries.
  13. “The entries changed since the preview.”
  14. My reports changed after anonymizing.
  15. The backup link is missing.
  16. Resource Hub

Video walkthrough

Anonymize Old Gravity Forms Entries (GDPR) and Keep Your Stats
Video walkthrough: anonymize old Gravity Forms entries with a preview and a backup, keeping your stats. Watch on YouTube

Form entries collect names, emails, phone numbers and free-text answers, and they stay in your database for years. The Gravity Forms Entry Sanitizer Premium Add-on replaces that personal data with rules you choose per field, so your entries, counts and choice answers stay for your reports. It also deletes entries across all forms with filters, applies retention rules, answers privacy requests and exports staging-safe copies. Every action previews first and saves a backup before anything changes.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.7 or higher
  • WP-CLI (optional): for the wp ge-sanitize command
  • GravityExtra license: the add-on installed, activated and licensed

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Entry Sanitizer, paste your GravityExtra license key and click Activate License.
  3. Optionally set how long backups are kept (default 30 days) and what happens on an erasure request.

Step 2: Check the Rules of Each Form

Open a form and go to Settings → Entry Sanitizer. Each field has a rule:

  • Keep: the value stays. Suggested for choices, numbers and other non-personal answers.
  • Blank: the value is removed. Suggested for free text, websites, lists and file uploads (uploaded files are deleted).
  • Hash: the value is replaced with a code such as h:2747238aae7ed385. The same answer always gives the same code, so duplicates and unique counts still work.
  • Placeholder value: names become “Anonymous Person”, emails anon-…@example.invalid (one per person), phones 0000000000, street and postcode are removed while city, state and country stay, and dates keep only the year.

Two switches cover the rest of the entry: clearing the IP address, browser details and page URL parameters (on by default), and deleting the entry notes, which can contain email addresses (off by default). Suggested rules apply until you save the form's rules.

Entry Sanitizer form settings with a rule per field: placeholder value for name, email, phone and address, keep for reason and age, blank for notes and hash for member ID

Step 3: Preview and Run a Cleanup

  1. Go to Forms → Entry Sanitizer → Clean up entries.
  2. Choose Anonymize personal data or Delete entries permanently, all forms or chosen forms, the entry statuses (active, spam, trash) and optional dates (on or after, before, older than N days).
  3. Click Preview. Nothing is changed: you see how many entries and values would change per form, with masked examples.
  4. Type the confirmation word shown (ANONYMIZE or DELETE) and click the button. A backup of the entries is saved first, then the run starts. If entries changed since the preview, you are asked to preview again.
Preview of an anonymization with entries and values per form, masked examples of each change and the confirmation box

Step 4: Backups, Log and Restore

Log & backups lists every preview and run: date, who ran it (admin screen, WP-CLI, retention schedule or privacy request), the action, the mode and the counts. Runs that changed data have a backup link and Preview restore. Restoring puts the original values back on anonymized entries and re-creates deleted entries (with a new entry number and a note with the original one). Files removed by an anonymization cannot be restored.

Backups contain the original personal data. They are stored in a private folder in your uploads directory with a random name and removed automatically after the number of days you set. On Nginx servers, keep the uploads folder from being listed.

Log and backups tab listing previews and applied runs with source, action, counts and backup links with Preview restore

Step 5: Retention Rules

In Settings → Entry Sanitizer of a form, turn on Clean up old entries automatically, choose the age in days, anonymize or delete, and the statuses. Start in Preview only mode: once a day the log shows what would happen. Switch to Apply when the numbers look right; every applied run saves a backup first.

Step 6: Privacy Requests

With the add-on active, Tools → Export Personal Data and Tools → Erase Personal Data also cover entries in every form whose email field matches the request. Erasure anonymizes those entries with each form's rules (email fields are always replaced) or deletes them, as chosen in the add-on settings. Erasure requests are not backed up, because a backup would keep the data the person asked you to remove; the log keeps the counts only.

Step 7: Staging-Safe Export

Forms → Entry Sanitizer → Staging-safe export downloads a copy of your entries with personal data already replaced. Your live entries are not changed. Forms without saved rules use the suggested rules; notes, IP addresses and browser details are left out. Load the file on a staging or development site with wp ge-sanitize import <file>.

WP-CLI

# Preview anonymizing every entry of every form
wp ge-sanitize --all --dry-run

# Delete spam and trash older than 30 days in all forms
wp ge-sanitize --all --action=delete --status=spam,trash --older-than=30 --yes

# Staging-safe copy of forms 3 and 5, then load it on staging
wp ge-sanitize export /tmp/entries.jsonl.gz --form=3,5
wp ge-sanitize import /tmp/entries.jsonl.gz --dry-run

# Undo a run, show the log, run retention rules now
wp ge-sanitize restore backup-20261012-101500-anonymize-1a2b3c4d.jsonl.gz
wp ge-sanitize log
wp ge-sanitize retention --dry-run

Without --yes the command asks for confirmation. A backup is written before every change.

Not Included in Version 1.0

  • Undo for files deleted by an anonymization.
  • Very large cleanups from the admin screen run in one request; for tens of thousands of entries use WP-CLI.

Troubleshooting & FAQ

The preview shows 0 entries.

Check the statuses and dates. Entries that were anonymized before are skipped; use --force in WP-CLI to process them again.

“The entries changed since the preview.”

New entries arrived or entries were edited between the preview and the run. Click Preview again and confirm.

My reports changed after anonymizing.

A field you report on had the Blank or Placeholder rule. Restore the run from Log & backups, set that field to Keep or Hash and run again.

Backups older than the retention period are removed automatically, and privacy erasures are never backed up.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr