Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted (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 by raubin
Posted

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

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

Posted

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
			?>

-Dave

  • 2 weeks later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...