[英]Tracking traffic from mobile devices' home screen in Google Analytics
Does anyone know if it's possible to track website traffic coming specifically from a home screen icon on an Apple device? 有谁知道是否有可能跟踪Apple设备主屏幕图标上的网站流量?
Eg when I specify the following HTML I can obviously control the image that appears when the user adds a shortcut on their homescreen: 例如,当我指定以下HTML时,我可以显然控制用户在其主屏幕上添加快捷方式时显示的图像:
<link rel="apple-touch-icon" href="touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">
<etc, etc>
I'd like to know how many people are launching from their homescreen ie pressing the orange button in the above example. 我想知道有多少人从他们的主屏幕发射,即按下上面例子中的橙色按钮。 I don't think it's possible, but I was wondering if anyone had a trick up their sleeves?
我不认为这是可能的,但我想知道是否有人在他们的袖子上诡计?
TIA ♥ TIA♥
navigator.standalone
Returns a boolean indicating whether the browser is running in standalone mode. navigator.standalone
返回一个布尔值,指示浏览器是否以独立模式运行。 Available on Apple's iOS Safari only. 仅适用于Apple的iOS Safari。
if (window.navigator.standalone) {
// From home screen
}
From Safari Web Content Guide : 从Safari Web内容指南 :
You can determine whether a webpage is displaying in standalone mode using the
window.navigator.standalone
read-only Boolean JavaScript property.您可以使用
window.navigator.standalone
只读布尔值JavaScript属性确定网页是否以独立模式显示。 For more on standalone mode, see apple-mobile-web-app-capable.有关独立模式的更多信息,请参阅apple-mobile-web-app-capable。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.