Facebook does not provide third-party developers or applications with the information or the means to acquire the information necessary to track specific users' browsing habits. This means that there is no way to track who visits your profile. Instead of allowing or expecting users to keep track of visitors, Facebook provides tools to control what information you share with specific groups. After adjusting the default security settings, you should have little reason to worry about who visits.
Access your account settings. To do so, log in to Facebook as you normally would. Click the "Account" button at the top of the screen then choose "Privacy Settings" from the menu that drops. Wait for the next page to load.
Click the "Customize Settings" link in the bottom left corner of the Settings box in the center of the screen. The next page will display a number of information categories beside drop-down menus. You can use these menus to decide to whom Facebook will make the corresponding type of information available. "Friends Only" means that only those you have accepted as a Facebook friend will be able to view posts in that category. Information shared with "Everyone" is available to anyone with a Facebook account. There are a number of setting options between those two extremes.
Consider what type of information you tend to post under each category. You should also keep in mind that others can tag you in pictures, notes and other media when choosing who to share with. Basic categories like contact information might be safe to share with general groups, but categories like "Photos" could easily contain posts that you would not want shared somewhere like your workplace.