Smart TV integration

The MoEngage Web SDK can track user data and events to enhance analytics and display onsite messages in LG TVs (webOS) and Samsung Tizen OS TV.

For a complete technical reference, check out our Javascript Documentation or our sample apps for LG TV  and Samsung TV to see the Web SDK running on a TV.



  1. Do not add the serviceworker.js file, as Push Notification does not work here.
  2. Pass disable_web_push: true to the initialization config., so that the SDK does not initialize the Push Notification module. More details are available here.
  3. Pass disableCookies: true to disable the usage of any cookies

Supported Features


Since the TV apps does not have URL and the SDK requires to do a lot of stuff on changing page/screen, it needs to be notified that the page/screen has changed. So you have to call the helper function Moengage.handle_page_change() on changing the screen

TV Remote Navigation in On-site Messaging (OSM)

We only support horizontal navigation in the template as of now. In the OSM campaign creation, when you select TV as the platform in Step-1, you will only be able to use the limited templates available. In those templates, only horizontal navigation can be used.

Deeplinks in OSM Templates

Since the hyper link redirection cannot happen by default in TV as in browsers, there is a event being emitted from the template on clicking on any link and you can listen to that events and handle the redirection.

<script type="text/javascript">
window.addEventListener('MOE_AUTOMATED_EVENTS', function (event) {
  if(event.detail) {
    if( === 'MOE_ONSITE_CLICKED') {
      // {
      //   deeplink: '',
      //   label: 'Click Me',
      //   campaignName: 'Test Campaign'
      // }
    if( === 'MOE_ONSITE_DISMISSED') {
      // {
      //   label: 'Click Me',
      //   campaignName: 'Test Campaign'
      // }


Sample Code

We have created the following sample apps for reference.

  1. LG Web OS
  2. Samsung Tizen OS


The Web SDK supports the following TV OS versions:

  • LG webOS TV 5.0 and above
  • Samsung Tizen 4.0 and above



Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?