I used the Google Analytics module from Ifinity to add google analytics to DotNetNuke. The module is very easy to add to your DNN portals, you just add the module (hidden) to every page in the module settings. This page describes the process, there are also some better instructions on Ifinity’s blog.