Managing cookie consent manually is one of those tasks that sounds simple until you’re staring at a list of 30 cookies and trying to remember which ones are “analytics” and which are “marketing.” If your WordPress site handles GDPR or CCPA compliance, cookie management is a recurring task, not a one-time setup.
Bulk-managing cookies from a CSV file significantly reduces that time. You can export your full cookie list, edit it in a spreadsheet, and reimport it in minutes. This guide covers exactly how to do that using the WebToffee GDPR Cookie Consent Plugin, plus what your CSV file should look like and what to check before importing.
Let’s get started.
Key Takeaways:
- Importing and exporting cookies in WordPress using a CSV file helps you save time, stay GDPR/CCPA compliant, and manage cookie data more efficiently.
- The WebToffee GDPR Cookie Consent Plugin makes this process seamless with built-in scanning, categorization, and bulk import/export features.
- Whether you’re managing one site or many, this workflow keeps your cookie setup consistent and audit-ready.
Most store owners set up cookies once and forget about them until something breaks or an audit comes around. Here are the situations where CSV import/export actually matters:
- Bulk editing is faster in a spreadsheet: Spreadsheets give you copy-paste, filters, bulk find-and-replace, and column-level editing. Updating 15 cookie descriptions in Excel takes two minutes. Doing the same in a WordPress dashboard takes considerably longer.
- GDPR and CCPA compliance documentation: Privacy laws don’t just require a cookie banner. They expect you to document every cookie your site uses, including its name, purpose, provider, category, and retention period. Maintaining that in a spreadsheet is far easier than digging through your WordPress dashboard each time.
- Managing multiple WordPress sites: If you run more than one site or handle clients, starting from scratch on cookie setup every time is unnecessary. Build one solid, accurate CSV, import it across sites, and keep everything consistent.
- Switching consent management plugins: This one catches people off guard. If you’re moving from one CMP to another, your cookie data doesn’t automatically transfer. Exporting it first means you’re not rebuilding the list from zero on the new plugin.
What the Cookie CSV File Actually Looks Like
Before you import anything, it helps to understand the structure of the CSV file. The WebToffee GDPR Cookie Consent Plugin uses a specific column format when it exports cookies. Here’s what those columns represent:
| Column | What It Contains | Example |
| Cookie Name | The exact name of the cookie | _ga |
| Category | Consent category it belongs to | Analytics |
| Description | What the cookie does | Used to distinguish users |
| Provider | Who sets the cookie | Google Analytics |
| Duration | How long the cookie is stored | 2 years |
| Type | First-party or third-party | Third-party |
When editing the CSV before an import, make sure the category names match exactly what your plugin uses. If the plugin uses “Analytics” but your CSV says “analytics” or “Statistical,” it may not map correctly. Check your existing category labels inside the plugin before editing.
For this walkthrough, we’re using the WebToffee GDPR Cookie Consent Plugin. It’s a Google-certified CMP that handles consent collection, cookie scanning, script blocking, and cookie list management in one place.
Step 1: Install the WebToffee Cookie Consent Plugin
After purchasing, download the plugin file from your confirmation email or from the My Account page on WebToffee. Install and activate it from the WordPress dashboard → Plugins → Add New → Upload Plugin.
Step 2: Scan Your Website to Identify Cookies
- Go to Cookie Consent → Manage Cookies from your WordPress sidebar.
- Click the Cookie Scanner button and run a scan. The plugin crawls your site and automatically detects cookies being set, then adds them to your cookie list with category suggestions.

This step is worth doing before any export, especially if your site has recently added new scripts or integrations like Google Analytics 4, Meta Pixel, or any new WooCommerce extensions.

Step 3: Export Your Cookie List to CSV
- Go to the Advanced tab inside the Cookie Consent plugin settings.

- Click Export Cookies. The plugin downloads a CSV file containing your full cookie list with all the column fields described above.

- Open this file in Excel or Google Sheets to review, edit, or reuse it across other sites.
Step 4: Import Cookies from a CSV File
- From the same Advanced tab, click Upload File and select your CSV.

- Once uploaded, click Import Cookies. The plugin reads the file and adds the cookies to your list. Existing cookies with matching names are updated; new entries are added fresh.

Things to Check Before Importing a Cookie CSV
A few things that can cause import issues:
- Category names must match exactly: If your CSV lists a category that doesn’t exist in the plugin settings, those cookies may not be assigned correctly. Cross-check your category names before importing.
- Watch for duplicate entries: If you’re importing into a site that already has cookies scanned, you may end up with duplicates. Review the existing list first or clear it before importing if you’re doing a full replacement.
- Keep duration format consistent: Some cookies have duration listed in days, others in months or years. Use a consistent format across your CSV to avoid display issues.
- Verify provider names: Cookie providers like “Google LLC” vs. “Google” can end up as separate entries if they’re not normalized. Clean this up in the spreadsheet before importing.

The WebToffee Cookie Consent Plugin is more than just a tool for displaying cookie banners—it’s a complete compliance solution for WordPress websites. Designed to help you stay on the right side of privacy laws like GDPR, CCPA, and more, this plugin makes it incredibly easy to collect, manage, and document user consent.
It offers customizable cookie banners that you can tailor to match your site’s design, along with flexible display options like bottom bars, popups, or even widgets, ensuring that your compliance doesn’t come at the cost of user experience.
Key Features of WebToffee Cookie Consent Plugin
- Complete Compliance Solution: Ensures compliance with GDPR, CCPA, and other global privacy laws.
Customizable Cookie Banners: Tailor banners to match your site design; supports bottom bar, popup, and widget formats. - Built-in Cookie Scanner: Automatically detects and categorizes cookies used on your website.
- Prior Consent & Script Blocking: Blocks cookies and third-party scripts until user consent is obtained.
- Granular Consent Control: Enables users to manage consent per cookie category.
- Multilingual Support: Compatible with WPML and other translation plugins.
- Google-Certified CMP: Fully supports Google Consent Mode v2 and integrates with Google Tag Manager.
Want to ensure your website complies with Google’s consent requirements? Use WebToffee’s Google Consent Checker to instantly analyze your site’s compliance.
Can I import cookies into WordPress without a plugin?
No. WordPress has no native cookie management system. You need a consent management plugin like WebToffee GDPR Cookie Consent to scan, categorize, and bulk manage cookies.
What file format does the import support?
The WebToffee Cookie Consent plugin uses CSV format for both import and export.
What does the cookie CSV file look like?
It’s a standard spreadsheet with columns for cookie name, category, description, provider, duration, and type. You can open and edit it in Excel, Google Sheets, or any spreadsheet tool before importing.
Can I use the same CSV file across multiple WordPress sites?
Yes. That’s one of the main use cases for exporting. Build and verify your cookie list on one site, export it, and import it on your other properties. Just make sure the cookie categories are set up consistently across all sites before importing.
Is it safe to import cookie data from another site?
Yes, as long as the cookies are relevant to the tools and scripts you actually use on that site. For example, if you’re importing from a site that uses GA4 and Meta Pixel, but the destination site doesn’t run Meta Pixel, remove those entries before importing.
Can I edit the cookie list before importing?
That’s the whole point. Export the list, open it in a spreadsheet, make your edits, and reimport. This is especially useful when you need to update descriptions, fix categories, or clean up provider names in bulk.
Managing cookies might not be the most exciting part of running a WordPress site, but it’s one of those things you just can’t afford to ignore, especially with privacy laws tightening up. The good news? You don’t have to do it all manually. With tools like the WebToffee GDPR Cookie Consent Plugin, importing and exporting cookies using a CSV file becomes quick, clean, and way less stressful.
Whether you’re staying compliant with GDPR, keeping cookie documentation ready for audits, or just trying to manage multiple sites more efficiently, bulk handling your cookies is a smart move. So go ahead—scan your site, export your cookie list, edit it on your own terms, and reimport when you’re ready. Simple as that.
Needless to say, staying compliant doesn’t have to be complicated. A few smart tools and a good process are all it takes.
Further reading:
