I find using this plugin to intergrate Google Analytics works well. https://wordpress.org/plugins/google-analytics-for...
Jef Lippiatt Owner at Startup Chucktown
I would recommend looking at plugins for the following analytic platforms:
- Google Analytics (as mentioned above)
- Piwik Analytics
I won't recommend a specific plugin, but plugins for those platforms are some of the best analytic platforms I am currently aware of in the market.