How to install Google Analytics on ssl page

Discussion in 'Google' started by toyotaMAN, Jul 31, 2007.

  1. #1
    When I put the analytics code to my secure pages..theres a message on IE something like

    "this page contains both secure and non-secure items

    Do you want to display the non-secure items?"

    sometimes ...

    it says "it doesnt match with the domain a third party might see this page"...

    what a hell.....

    any suggestions...
     
    toyotaMAN, Jul 31, 2007 IP
  2. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you have to dl urchin.js to webserver first.you cant use remote js on ssl pages.Without that warning.
     
    rootbinbash, Jul 31, 2007 IP
  3. toyotaMAN

    toyotaMAN Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks.. I got the solution.. :)
     
    toyotaMAN, Jul 31, 2007 IP
  4. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #4
    Just to make sure no other people goes from hwere with the same doubt.

    You CAN use remote javascript on secure pages.

    Use:

    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
    Code (markup):
    instead of the normal script include.

    that's all.
     
    tresman, Jul 31, 2007 IP
  5. dattani

    dattani Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    instead of the normal script?
     
    dattani, Jul 31, 2007 IP
  6. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #6
    Yes,

    usually, you will use something like:

    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    	_uacct = "UA-XXXXXX-Y";
    	urchinTracker();
    </script>
    Code (markup):
    but when you need to put in a https page (secure page), you use:

    
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
    </script>
    <script type="text/javascript">
    	_uacct = "UA-XXXXXX-Y";
    	urchinTracker();
    </script>
    Code (markup):
    I hope this clears any doubt.
     
    tresman, Jul 31, 2007 IP