简体   繁体   English

Google Analytics for Samsung Smart TV App

[英]Google analytics for samsung smart tv app

I have googling around for a day and found no proper solution to apply google analytics for smart tv app. 我已经搜寻了整整一天,但没有找到适当的解决方案来将Google Analytics(分析)应用于智能电视应用。 I have tried these links but had no luck to crack the issue. 我已经尝试了这些链接,但没有运气破解该问题。

Google Analytics and Samsung Smart TV Apps Google Analytics(分析)和Samsung Smart TV Apps

I dont want an iframe solution since it can be only used for pageviews not events. 我不想要iframe解决方案,因为它只能用于网页浏览,而不能用于事件。 Currently iam working on 2011 and 2013 Tv and document.domain gives me "localhost" in 2011 and "" for 2013. 目前,iam正在研究2011年和2013年的电视,document.domain在2011年为我提供了“ localhost”,在2013年为我提供了“”。

Is there any proper way to implement google analytics without using iframe ? 有没有不使用iframe来实施Google Analytics(分析)的适当方法?

Thanks in advance. 提前致谢。

Okay thanks to @DamTo for a chat discussion that solved me my day. 好的,感谢@DamTo进行的聊天讨论使我今天的生活解决了。 Manually sending GET/POST request depending on the payload to google url end-point registered my page view on Google analytics admin panel. 根据有效负载手动将GET / POST请求发送到google url端点,从而在Google Analytics(分析)管理面板上注册了我的页面视图。

Here is the reference for sending manual request. 这是发送手动请求的参考。

https://developers.google.com/analytics/devguides/collection/protocol/v1/reference https://developers.google.com/analytics/devguides/collection/protocol/v1/reference

Since smart tv doesnt support cookie storage, the client id has to be stored in filesystem to save and produce unique event/page requests. 由于智能电视不支持Cookie存储,因此必须将客户端ID存储在文件系统中,以保存并产生唯一的事件/页面请求。

如果智能电视支持Android,并且很多都支持,那么在Android应用中使用Google Play服务中的Google Analytics API即可。

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

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