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! :)

Thanks,

Drew

Recommended Answers

All 2 Replies

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**
Regards,
Pavan Kumar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.