Visitor Stats 2 logo Convert. From v1 to v2
Very, very important note

If you have a large table with lots of records, your browser may freeze or stop working... it will even say 'Can't connect to website blah blah'

Ignore this, in fact, expect it!

I have found the best way to not freak out over what's happening is to use another browser (Opera, Firefox, Safari etc) and open up your phpmyadmin. On the first page, click on 'Show Processess'.

This will tell you what MySQL is up to, and how long it's taken so far.

Just leave it to do its thing, and come back later. Have a coffee or go for a surf.

 
Converting Users

Lets start with the 'vistats_user' table because its usually alot smaller than the 'vistats_pages' table.

Copy Users overs: Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 
Converting Robots

Now we can move all the robots to their own table. (usually more robots than visitors)

Copy Robots overs: Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

That should have taken care of both Users and Robots. Do a quick check in both the vistats_user and vistats_robot table and add up the results. They should add up to the total of your vistats_user2 table.

 
Converting User Pages

Now we can convert all the User Pages.

Copy User Pages overs: Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 
Converting Robot Pages

Now we can convert all the Robot Pages.

Copy Robot Pages overs: Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

Again, do a quick check in both the vistats_user_pages and vistats_robot_pages table and add up the results. They should add up to the total of your vistats_pages2 table.

 
Converting Referrers

A new table I created. Lets get all the referrers from the pages table.

Copy Referrers overs: Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 
Cleaning up...

I have added a little extra script, to clean up all the empty feilds in converted records, such as Direct Requests, Home etc.

Clean up empty Referrers
Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 

Clean up the empty Pages, make them either 'Home' or similar
Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 

And clean up the empty Robots.
Copy and paste this into your 'Run SQL query/queries' box in phpmyadmin.

 

Ok, we are finished.

You can now upload all of the /visitor_stats/ folder
(except the common.inc.php file, see next page)

Now, turn Visitor Stats back on!

Open up 'visitor_stats/visitor_stats.php'. On line 11 to 16, re-comment this section.
That's it for now... a few words on settings