The MoEngage Web SDK can track user data and events to enhance analytics and display onsite messages, cards, and Web Personalization 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.
Integration
The integration is the same as the standard SDK integration for any other website.
However, make sure to follow these steps:
- Do not add the serviceworker.js file, as Push Notification does not work here.
- Pass
disable_web_push: true
to the initialization config., so that the SDK does not initialize Push Notification module. More details are available here.
Analytics
You can use all of the existing Web SDK methods for data, events tracking, and session tracking for Smart TVs. For more information, refer to this section.
On-site Messaging
There are no additional steps required here. OSM will work seamlessly without any integration effort.
Web Personalisation
Follow the steps to enable Web Personalization module.
Cards
To use the Cards feature, refer to the Cards section.
Sample Code
We have created the following sample apps for reference.