Change a script's category in WordPress
How to put a plugin's script in another category from the Consent Guard plugin in WordPress, when Krateon's rule puts it in the wrong one.
What it does
This article explains how to give one plugin's script a different category in the Consent Guard plugin for WordPress.
The category of a script normally comes from Krateon's rules. The plugin explains: "Use this only when a plugin's script is in the wrong category. Everywhere else the category comes from Krateon's rules."
Who uses it and when
The setting is on the plugin's page in the WordPress admin menu. WordPress shows the page to users who can manage the site's settings, usually administrators.
Your account is your personal access. The organisation is your shared environment in Krateon, where all members of your business or body work together.
Change a category only when you know what the script does, for example when the plugin's own documentation says it is needed for the site to work.
How it works
- In WordPress, open "Consent Guard" in the admin menu.
- Open "Advanced settings".
- Open "Change a script's category".
- Find the script in the table. Each row shows the "Script", its "Address" and its "Category".
- In the "Category" list of that row, choose the category:
- "Strictly necessary", "Functional", "Statistics", "Marketing" or "Unclassified".
- Or the first choice, "Krateon's rule", to go back to the category from Krateon's rules.
- Press "Save settings".
The table lists the scripts from other sites that the plugin has recorded on your pages. If it says "No scripts from other sites recorded yet.", press "Check my site now" first. See "Check your site from the WordPress plugin".
Expected outcome
"Settings saved." appears. From the next page view, the script follows the category you chose.
- "Strictly necessary". The script runs without waiting for the visitor's choice.
- "Functional", "Statistics" or "Marketing". The script waits until the visitor accepts that category.
What is saved. The category you chose for that script, in your WordPress database. Krateon's rules do not change.
What counts as a failure
- "Settings saved." does not appear after you press "Save settings".
- The script still behaves as before after you reload a page of your site.
Troubleshooting
The messages in the first column appear exactly as quoted.
| Message | Likely cause | What to do |
|---|---|---|
| "No scripts from other sites recorded yet." | The plugin has not recorded any script from another site on your pages yet. | Press "Check my site now", then open "Change a script's category" again. |
| "You are not allowed to do this." | Your WordPress user cannot change the site's settings. | Ask a WordPress administrator of your site. |
| The script still behaves as before. | A page cache may still serve an older copy of the page. | 1. Clear your page cache. 2. Reload the page of your site. |
If you contact support at hello@krateon.com, include the email address you used, the message you saw, the date and time of the attempt and your browser. Do not send your password.
Workarounds
- A tracker's category is wrong for every website. The rule comes from Krateon. Tell support which tracker and which category, at hello@krateon.com.
Redundancy and fallbacks
- Going back. Choose "Krateon's rule" in the row and press "Save settings".
- Where it is kept. The choice is kept in your WordPress. It is not part of the evidence pack in Krateon.