Google Analytics for Samsung Smart TV App

I have a search engine for a day and have not found a suitable solution for using Google Analytics for a smart TV application. I tried these links, but I could not solve the problem.

Google Analytics and Samsung Smart TV Applications

I do not want to use an iframe solution, since it can only be used to view pages, not events. Currently, iam working in 2011 and 2013, Tv and document.domain gives me "localhost" in 2011 and "" for 2013.

Is there any proper way to implement Google Analytics without using an iframe?

Thanks in advance.

+5
source share
2 answers

Ok, thanks @DamTo for the chat discussion that allowed me my day. Manually sending a GET / POST request depending on the payload to the endpoint of the google URL, I registered a view of my page in the Google Analytics admin panel.

Here is the link to send the request manually.

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

Since Smart TV does not support cookie storage, the client ID must be stored in the file system to store and create unique requests for events / pages.

+4
source

If your smart TV supports Android, and many of them do, try using the Google Analytics API from Google Play Services in your Android app.

0
source

Source: https://habr.com/ru/post/913926/


All Articles