简体   繁体   English

Xulrunner - Google Analytics 无法识别访问

[英]Xulrunner - Google Analytics doesn't recognize visit

My app opens a specific website link in an iframe but GA doesn't recognize a visit.我的应用程序在 iframe 中打开特定网站链接,但 GA 无法识别访问。 It recognizes it OK in NW.js, if I open it directly in the browser, ...它在 NW.js 中可以识别它,如果我直接在浏览器中打开它,...

I've tried to make a Mobile App account but it doesn't help.我试图创建一个移动应用程序帐户,但没有帮助。

Do I have to set some preferences in xulrunner to make this work?我是否必须在 xulrunner 中设置一些首选项才能完成这项工作? If so, what preferences?如果有,有什么偏好?

Maybe you should check the iframe and browser tag in xulrunner.也许您应该检查 xulrunner 中的 iframe 和浏览器标签。 You are probably using iframe tag to start the application, i had the same issue.您可能正在使用 iframe 标记来启动应用程序,我遇到了同样的问题。 Just use the browser tag and you will be ok.只需使用浏览器标签就可以了。

EDIT TO EXPLAIN A BIT MORE : iFrame tag - An inner frame that works much like the HTML iframe element.编辑以解释更多: iFrame 标记 - 一个内部框架,其工作方式与 HTML iframe 元素非常相似。 The src attribute can be used to specify the content of the frame. src 属性可用于指定框架的内容。 This content is a separate document.此内容是一个单独的文档。

browser tag - A frame which is expected to contain a view of a Web document.浏览器标签 - 预期包含 Web 文档视图的框架。 It is similar to an iframe except that it holds a page history and contains additional methods to manipulate the currently displayed page.它类似于 iframe,除了它保存页面历史记录并包含操作当前显示页面的其他方法。

When you use iframe tag, google requires you to make additional changes so the tracking works ok.当您使用 iframe 标签时,谷歌要求您进行其他更改,以便跟踪工作正常。 More info : goo.gl/sZz9Mk更多信息:goo.gl/sZz9Mk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM