问题
Does setting the html5 iframe sandbox
attribute stop google analytics measuring page views, because the scripts is not allowed when sandbox is set?
<iframe id="iframe_auto" src="" scrolling="yes" sandbox=""></iframe>
回答1:
An empty sandbox attribute will not allow scripts to run so Google analytics will not run inside the iframe as it is 100% JavaScript dependent.
来源:https://stackoverflow.com/questions/11927519/do-html5-iframe-sandbox-counts-views