raubin Posted March 17, 2007 Posted March 17, 2007 I have searched but must be using the wrong terms (+google +secure +checkout +unsecure) I have been using paypal but want to move to google. Installed module...on a clean install of OSC, seems to work other than I get a popup warning when I go to checkout that the "page contains both secure and non secure items"..... https://secure.rsssecure.com/woku/ Any help would be appreciated. r Quote
Jack_mcs Posted March 17, 2007 Posted March 17, 2007 That message means there is a link on the page that is not secure. Look for any external link going to http and try removing it, tempoairly, to see if it fixes it. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
raubin Posted March 17, 2007 Author Posted March 17, 2007 (edited) :thumbsup: Ok so I found the problem... In the file /catalog/googlecheckout/gcheckout.php on line 476 the Google analytics code starts; echo '<!-- Start Google analytics --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "' . MODULE_PAYMENT_GOOGLECHECKOUT_ANALYTICS . '"; urchinTracker(); </script> <script src="http://checkout.google.com/files/digital/urchin_post.js" type="text/ja$ The JS files are "http:" and after I replace it with code from the analytics site: <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxx-x"; urchinTracker(); </script> I would have just changed the links to the secure google site but the urchin_post.js is not on the site.. The error is gone but I don't know if the analytics will still work. Has anyone seen this before? r Edited March 17, 2007 by raubin Quote
Jack_mcs Posted March 17, 2007 Posted March 17, 2007 Yes, it is a common problem. You either need to change the link to https, if the site you are connecting to has a secure connection, or add code to disable it on the secure pages. For google analytics, there is a contribution explaining how to install that for the checkout pages. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Roaddoctor Posted March 17, 2007 Posted March 17, 2007 Jack mcs, Is this the code you are referring to? <?php // osCoders.biz - Analystics - start /* Conditional code added thank to rrodkey and bfcase IMPORTANT -- IMPORTANT - IMPORTANT You'll need to update the "xxxx-x" in the samples (twice) above with your own Google Analytics account and profile number. To find this number you can access your personalized tracking code in its entirety by clicking Check Status in the Analytics Settings page of your Analytics account. */ if ($request_type == 'SSL') { ?> <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-XXXXXX-X"; urchinTracker(); </script> <?php } else { ?> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-XXXXXX-X"; urchinTracker(); </script> <? } // osCoders.biz - Analistics - end ?> Quote -Dave
Jack_mcs Posted March 18, 2007 Posted March 18, 2007 It looks like it. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ropu Posted March 26, 2007 Posted March 26, 2007 (edited) hi all please have a look to this post, ive updated the code to support ssl in GA without any warnings http://www.oscommerce.com/forums/index.php?s=&...t&p=1048091 hope this helps ropu Edited March 26, 2007 by ropu Quote Last version (v1.4): http://www.oscommerce.com/community/contributions,4556
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.