How to setup Playstation Account for achievement tracking

1. Sign-in on the playstation.com website and navigate to Account Settings from the user dropdown menu.
2. Click Privacy Settings under the PlayStation Network subsection on this page, then under Gaming | Media make sure Gaming History is set to Anyone.