开发者

Google analytics https iframe does not work on chrome and safari

开发者 https://www.devze.com 2023-01-05 05:33 出处:网络
So开发者_StackOverflow中文版 I\'m trying to embed the google analytics login page onto a page. Works fine on IE and Firefox. The website is hosted on a local machine.

So开发者_StackOverflow中文版 I'm trying to embed the google analytics login page onto a page. Works fine on IE and Firefox. The website is hosted on a local machine.

Code:

<iframe src="https://www.google.com/analytics/settings/?et=reset&hl=en" height="1000px" width="100%">Your browser does not support iframes.</iframe>

Is this a bug in chrome safari or can I adapt my xhtml to fix this?

Edit :In the end I used the Google Analytics API with this PHP library http://code.google.com/p/gapi-google-analytics-php-interface/ and google chart api.


Google is setting response headers to explicitly block the loading of these pages into an iframe. The headers are respected by newer browsers, but not implemented in older ones. I suspect you're using a version of IE below 8 if this is working for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消