What you may find though is that you get an error during checkout due to the code not using an https: link. Switching the code to use strictly the https link will often work, but here is a more elegant solution. Use this javascript instead to switch between the http: and https: links (modify the link as needed for whatever analytic service you are using):
Now your site won't throw any errors!