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
11/25/2008 3:20 AM
 

Hi,

What is best practice for adding the code to dnn sites.

I noticed that 1 option is to put it in the skin.

Im pretty new to this could anyone show me an example of how to do this?

Thanks in advance

 
New Post
11/25/2008 8:23 AM
Accepted Answer 

One of the many ways of  adding Google Analytics to your site is via the text/html module.

Add the Text/HTML module to the page you want to track.

  1. Edit the text
  2. In the text editor switch to source view in the upper right hand corner.
  3. Paste the Google Analytics code into the textbox.
  4. Click Update
  5. Now go to the module settings on the Text/HTML module
  6. Name the title, "Google Analytics" just as a good practice.
  7. Expand the "Advance Settings" area.
  8. If you want to track all pages put a check mark next to "Display Module On All Pages"
  9. Expand the "Page Settings" area.
  10. Uncheck the box next to "Display Container".  This will keep the container from showing up.
  11. Click Update.

Stuart

 


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
11/25/2008 3:10 PM
 

Thanks Stuart

Thats exactly what i was after

Have a great day

 
New Post
11/25/2008 4:56 PM
 

I would suggest placing it in the default.aspx file right above the "</body>" tag at the end like below. There are many reasons to do this. It is easy. You don't have to add it to new pages as you create them. You don't have a module showing up on every page that you might have to change some day when the google code changes (as it is now with the new javascript code).  - thanks, Will.

    </dnn:form>
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxx379-3";
urchinTracker();
</script>
</body>
</html>

 
New Post
11/26/2008 3:20 AM
 

On my side, I have choosen to include it into the skin...

Why ?

Just because it applies to all pages as said by Will, but also because I have a different skin for my "admin page" and my "normal page". This way, I do not take into account hits to Admin pages (when I work, I do not want to take into account my own visit)...

;-) Hope it helps,
DV FX

 
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