Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google AnalyticsGoogle Analytics
Previous
 
Next
New Post
6/28/2009 7:53 AM
 

Mark,

I apologize, but I haven't used the new module yet and can't provide assistence. 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/28/2009 2:44 PM
 

Here what I did on my site and which is working fine, tested on DNN 4.x and DNN 5.x

I don't remember the source of that solution, but I saved a copy in my archives.

Here it is:

Adding Google Analytics to DotNetNuke

Installing Google Analytics in DotNetNuke is a fairly common request from many individuals and I know it can be a quite troubling question for most. The primary questions are how and where can I put the javascript code provided by Google. Well you have a few options. First you could put the code directly in the skin for the site, the advantages to that would be that you will automatically have the code on all pages, however, the disadvantage is that you cannot use that skin as is on another portal due to the site specific Google information. I personally go the route of adding a text/html module to my site and set it to show on every page and insert the script in a very specific location which I will discuss below. There are a few drawbacks to this method. First you will not get any statistics information on traffic to "edit pages" where other modules are not displayed and you also will not receive information regarding administration modules. However, in most circumstances this shouldn't be an issue.

The best way to include this information is to include the information in the Module header of the text/html module. This is to prevent the accidental removal of the script code if you happen to click inside the module as an admin to enter in-line edit mode. Below I will walk you through the steps needed to implement Google Analytics using this method. (NOTE: you can extend this for other javascript integrations if needed).

   1. Add a new Text/HTML module to a page of your site, you can position it anywhere, but I recommend the bottom of the page as administrative users will still see the module when they are logged in
   2. Edit the text of the module to contain no text
   3. Enter the module settings from the SolPart Action Menu
   4. Expand the "Advanced Settings" section
   5. Check the box next to "Display Module On All Pages?"
   6. Insert your Javascript code in the "Header" box. This will ensure that the data is always retained
   7. Now under "Page Settings" -> "Basic Settings" un-check the following boxes
          * Display Container
          * Allow Print
          * Allow Syndicate
   8. Ensure that the "Cache Time" is set to 0 (Caching appeared to cause issues with this implementation in my testing)
   9. Click "Update" to save your changes

This should complete the setup. You may now test to ensure everything is functioning correctly. You can log out as an administrator and view your site and no extra content should be displayed however if you look at the generated source you should see your javacript listed. Google Analytics should update within about 15 minutes to show that they are receiving your data.

 
New Post
6/28/2009 5:32 PM
 

Thanks Jim. How would you go about doing that if your website is not the parent portal?

I can't log in as HOST. Am I out of luck?

 

Thanks

 

Keith 

 
New Post
8/8/2009 2:08 AM
 

I have been using Bruce Chapman's "iFinity Google Analytics" module on my site (pre-DNN 5.1.1) for awhile, and it has worked like a charm (kudos to him for the it!) but now that Google Analytics is now integrated into DNN 5.1.x, what is the "Best Practise":

  • Delete the "iFinity Google Analytics"module at the Host level?
    • Will this delete each instance on my pages?
  • Delete each instance of "iFinity Google Analytics"at the Page level, then the Module at Host?
  • Leave "iFinity Google Analytics"on all pages?
  • Go back to my beer?

Needless to say, if I can get unneeded code off my pages so they render faster....

TIA,

Andrew


Andrew Seymour
dnn@aseymour.com
www.aseymour.com
 
New Post
10/12/2009 11:13 AM
 

Hi Andrew,

What you did?

I just upgrade my site to DNN5.1.4 that includes Google Analytics. Before this I worked with "iFinity Google Analytics".

What is the best solution? Keep both together?

Thanks & Regards,

Rui

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google AnalyticsGoogle Analytics


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out