Google analytics
Add sortbot@tinyelephant.iam.gserviceaccount.com to viewer access in Google analytics account, this is so Sortbot can view statistics from Google analytics.
Add google analytics user to credentials in Sortbot
Magento
Create an API user
Set credentials in sortbot.
Create an account in sortbot and copy over the credentials from API Magento and Google Analytics ID
Start Sortbot
To not lose old sorting of categories, create a backup from Sortbot, then remove all old sorting so it does not come in conflict with sortbot, then sort all categories for the first time. As lots of possisions are sorting the first time all these processes can take several hours.
After this first sync is done all categories will be sorted one time or day at midnight as long as corn jobs are enabled.