谷歌清除ssl状态_安全(SSL)Google Analytics(分析)

谷歌清除ssl状态

Google Analytics is a tremendous tool, especially when your customer wants an eCommerce website. Analytics is even more powerful when your customer uses Adwords to drive in traffic.

Google Analytics(分析)是一个强大的工具,尤其是当您的客户想要一个电子商务网站时。 当您的客户使用Adwords吸引流量时,Analytics(分析)会变得更加强大。

Google provides the following code for you to add to your page footer so that Analytics can grab statistics:

Google提供了以下代码供您添加到页面页脚中,以便Google Analytics(分析)可以获取统计信息:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct='UA-#######-#';urchinTracker();</script>

The problem with this is that if you're pulling this code in on a secure page, a security warning will pop up mentioning that the page is loading both secure and non-secure items. How do you prevent this issue (as well as trust issues with the user)? Simply import the secure version of Google Analytics:

这样做的问题是,如果您在安全页面上提取此代码,则会弹出一条安全警告,提示该页面正在加载安全项目和非安全项目。 您如何防止此问题(以及与用户的信任问题)? 只需导入安全版本的Google Analytics(分析):

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct='UA-#######-#';urchinTracker();</script>

For websites that have some pages secure and others not HTTPS protected, I recommend always calling the secure version of Google Analytics' urchin.js.

对于某些页面安全且其他页面不受HTTPS保护的网站,我建议始终调用Google Analytics(分析)urchin.js的安全版本。

翻译自: https://davidwalsh.name/secure-ssl-google-analytics

谷歌清除ssl状态

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值