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 ...Configuring Google Analytics on a site with SSLConfiguring Google Analytics on a site with SSL
Previous
 
Next
New Post
8/12/2007 11:20 AM
 

Does anyone use Google-Analytics to track the DNN usage?

Does anyone have a suggestion on how to configure my DNN Portal to leverage Google Analytics?  I added the necessary script on the default.aspx page and things seem to work okay as long as I don't switch over to SSL during the login process.  I noticed that when a user gets to the login page they are informed that not all of the data is using SSL (http://www.google-analytics.com/urchin.js).  I tried to simply change the call to goole to always use Https but the name of the certificate is google.com and the link I need is google-analytics, thus causing a challenge to the user...

 

By the way, the way I make SSL work for my site is using an auto-switching script found in these forums...

<script type="text/javascript">
    if(location.protocol.toLowerCase() =='http:' &&
        location.href.toLowerCase().indexOf('login') > -1 ) 
             location.href = location.href.replace('http:','https:');

    if(location.protocol.toLowerCase() =='https:' &&
         location.href.toLowerCase().indexOf('login') == -1 )
             location.href = location.href.replace('https:','http:');
</script >

 

 
New Post
8/12/2007 12:54 PM
 

One way is to change the http://www.google-analytics.com/urchin.js to https://ssl.google-analytics.com/urchin.js

But I would recommend taking the google analytics tracking off of the login page.


DotNetNuke Modules from Snapsis.com
 
New Post
8/13/2007 12:05 PM
 

I encapsulate the Google Analytics urchin.js in an ASP.NET custom control that gets used on each page...and it in turn determines whether the protocol prefix should be HTTP:// or HTTPS://.   This somewhat simplifies the process.  With respect to SSL support...

SSLRedirect is an excellent add-on for SSL securing DNN web pages.  SSLRedirect provides the flexibility of using Regular Expressions to define which web pages should be SSL secured.  SSLRedirect also provides an output filtering feature which assists in eliminating the mixed content message sometimes received when flowing from HTTP to HTTPS web pages.  SSLRedirect is the ONE SSL enabling component which works equally as well with native ASP.NET apps as with DNN apps.  SSLRedirect also works with single domain SSL Certificates or wildcard SSL Certificates.

CLICK HERE  to review a product brief.

CLICK HERE  to download product documentation.

 
New Post
8/14/2007 7:08 AM
 

Is there a way to change the google analytics script (the script we paste into our skins) to automatically switch between http and https as well? Is this necessary, or could we just put the https google analytics address on every page, secure or not? Which would be the best way for avoiding the mixed content warning?

 
New Post
8/14/2007 11:35 AM
 

You can put the https:// google analytics on every page if you want. Technically that is ok, but it may hurt performance.

You could also copy your skin, and put the secure GA code in one, and the non-secure in the other, then apply the SSL skin to your SSL pages.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Configuring Google Analytics on a site with SSLConfiguring Google Analytics on a site with SSL


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