Hey guys,

What would be the easiest way to retrieve Google Analytics Monthly Visitors & Pageviews? I just want to display them in text for my website like:

Visitors this Month: 1,222

Pageviews this Month: 3,433

If you have example code or a link to a tutorial that would be cool! :)



7 Years
Discussion Span
Last Post by pavankumarr

Hi Drew,

I had done Google Analytics in ASP.Net.
You have to Copy the Analytics code and paste it in to your corresponding Page.

How to get the code for Google Analytics:
1.Log in to Google Analytics at http://www.google.com/analytics
2.From the Overview page, select the account that has the profile for the tracking code you're looking for, as the code is profile-specific.
3.Select the profile from the accounts Overview page.
4.From that profile's Actions column, click Edit
5.At the top right of the 'Main Website Profile Information' box, click Check Status
6.Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section

When adding your tracking code to your web pages, make sure to paste it into the body section of your HTML code, immediately preceding the </body> tag if you use the ga,js code. If you use the asynchronous code, you should add it immediately preceding the </head> tag.

I think this might be helpful!!

**If solved mark as Solved**
Pavan Kumar

Edited by pavankumarr: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.