Google Analytics is a free service that lets you gather and analyze website traffic statistics. Answers to questions like Where does most of my traffic come from?, Which keywords are generating the most traffic? and How long do visitors stay on my site? can be answered using Google Analytics.
Not that long ago, Google allowed you to link your AdSense account with your Analytics account. (Note that you can only link single accounts together. If you have multiple AdSense accounts, you’ll need to create multiple Analytics accounts.) You can do this right from your AdSense management console — it’s very simple to link the two accounts. (See here for more details.)
Assuming you’ve added the Analytics tracking code (see here) to your AdSense pages, you should see AdSense earnings appear in your statistics within a day or so. Here are some sample stats:

The great thing about these stats is that you can do page-by-page earnings analysis without having to create separate AdSense channels for each page. This is especially useful if you have more than 200 pages of content, since you’re limited to 200 channels per AdSense account.
If you have multiple sites, though, there’s an extra step you need to take to do a proper integration. AdSense earnings are only collected for the primary domain in your Analytics account. If you don’t see a section labeled “AdSense Performance” in the per-page stats then you know AdSense data isn’t being collected:

Why can’t you see the AdSense earnings for this site? The likely cause is that you forgot to include the AdSense Analytics Code (ASAC) at the top of each page that displays AdSense ads. The ASAC is a small bit of JavaScript that should be inserted into a page immediately after the <body> tag and before any AdSense code:
<script> window.google_analytics_uacct = "UA-99999-3"; </script>
Replace the tracking ID above with the ID for your site — you’ll find it in your Analytics account by clicking on “Analytics Settings” to access the account overview page. Do this for each site you want to track.
That’s all you need to do to integrate your AdSense earnings into your Analytics account. Give it a few days to collect some information and start your analysis!