The MoEngage Web SDK can track user data and events to enhance analytics and display onsite messages and cards in LG TVs (webOS) and Samsung Tizen OS TV.
Integration
The integration is the same as the standard SDK integration for any other website. The following needs to be done:
-
-
- Add the SDK code in
index.html
- Do not add the serviceworker.js file, as Mobile Push is not applicable here.
- If you have enabled Web Push notifications, then select the Self-Handled opt-in type in the MoEngage Dashboard (Navigation: Settings -> Push -> Web Push) and do not call the call_web_push() method.
- Add the SDK code in
-
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.
Cards
To use the Cards feature, refer to the cards section.
Sample Code
We have created the following sample apps for reference.