Had an old copy of the “Google Analytics For WordPress” lying around (which didn’t seem to put anything in my blog source), but after upgrading it it kept saying “Google Analytics settings reset to default” whenever I tried to change anything.
See this thread which talks about the problem and waves at the solution.Â Here’s what you need to do, if like me you’re not a WordPress/MySQL junkie and want simple instructions:
- Find your wordpress config file.Â Mine, on a Debian system, was in /etc/wordpress/config-rusty.ozlabs.org.php
- It will contain lines like this:
- You need to open the mysql database, we’re going to do some brain surgery to remove the old cruft:
$ mysql --user=rustyozlabsorg --password=g1812fbsa rustyozlabsorg
- This should give you a “mysql>” prompt, where you type the following:
DELETE FROM wp_options where option_name='GoogleAnalyticsPP';
- It should say something like “Query OK, 1 row affected (0.00 sec)”. Then type
- You’re done.Â Reload your setting page and try again.
Hope that gets into Google and helps someone else who can’t figure out what’s going on!