Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript HTML5 iFrame沙盒是否统计视图?_Javascript_Html_Iframe_Google Analytics - Fatal编程技术网

Javascript HTML5 iFrame沙盒是否统计视图?

Javascript HTML5 iFrame沙盒是否统计视图?,javascript,html,iframe,google-analytics,Javascript,Html,Iframe,Google Analytics,设置html5 iframesandbox属性是否会阻止google analytics测量页面视图,因为设置sandbox时不允许使用脚本 <iframe id="iframe_auto" src="" scrolling="yes" sandbox=""></iframe> 空沙盒属性将不允许脚本运行,因此Google analytics不会在iframe内运行,因为它100%依赖JavaScript。Google脚本放在哪里?在Iframe的源代码中,还是在If

设置html5 iframe
sandbox
属性是否会阻止google analytics测量页面视图,因为设置sandbox时不允许使用脚本

<iframe id="iframe_auto" src="" scrolling="yes" sandbox=""></iframe>


空沙盒属性将不允许脚本运行,因此Google analytics不会在iframe内运行,因为它100%依赖JavaScript。

Google脚本放在哪里?在Iframe的源代码中,还是在Iframe的父文档的源代码中?