5

I have googling around for a day and found no proper solution to apply google analytics for smart tv app. I have tried these links but had no luck to crack the issue.

Google Analytics and Samsung Smart TV Apps

I dont want an iframe solution since it can be only used for pageviews not events. Currently iam working on 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 iframe ?

Thanks in advance.

Community
  • 1
  • 1
PRASANTH
  • 695
  • 3
  • 15
  • 33
  • Good question, I need some more info due to the fact that I know nothing about smart TV app development. What language are they created in? pop into http://chat.stackoverflow.com/rooms/54591/google-apis if you want to chat. I would love to help you get this working. – Linda Lawton - DaImTo Jun 12 '14 at 07:33

2 Answers2

4

Okay thanks to @DamTo for a chat discussion that solved me my day. Manually sending GET/POST request depending on the payload to google url end-point registered my page view on Google analytics admin panel.

Here is the reference for sending manual request.

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.

PRASANTH
  • 695
  • 3
  • 15
  • 33
  • Can you provide some more data? Also how can I setup a backoffice in analytics since I need to enter site URL? – Dalibor Apr 27 '15 at 09:21
0

If the smart TV supports Android and many do, then it is a simple matter of using the Google Analytics API from Google Play Services within your Android app.

William
  • 20,150
  • 8
  • 49
  • 91