Current Articles | Categories | Search | Syndication

Saturday, June 16, 2007
DotNetNuke & Google Analytics
By host @ 6:54 PM :: 1017 Views :: 0 Comments :: :: Google
 

Adding Google Analytics to your DotNetNuke Portal is very easy and should only take 5 minutes to complete. This article demonstrates how we can add Analytics code to our portal by editing the Default.aspx file. Keep in mind that this approach is only great if you're running a single portal off the DotNetNuke installation; since, Analytics will show statistics for all pages served by Default.aspx. If you have multiple portals of DNN on same installation then consider a "Module" approach for reach portal. Another disadvantage of this approach is to remember to add the code again if you do an upgrade and replace the Default.aspx.

Okay, let's get Analytics setup on our DotNetNuke portal in less than 5 minutes and for unlimited number of pages and future scalability.

Visit Google Analytics and Sign Up for an account which is free. Once you're logged in, add a site to Analytics account. Simply provide your site name and Google will generate the tracking code for you. We will need this code in next step so go ahead and copy it to a location where you can refer to it.

Next, open the Default.aspx file with notepad located in the root folder of DotNetNuke installation. Scroll down until you find the following tag:

</body>

Paste the tracking code collected earlier from Google's site right above this tag...That's it!

Google Analytics will now track every page on your DotNetNuke portal...

Comments
Currently, there are no comments. Be the first to post one!
You must be logged in to post a comment. You can login here