Hi @davidro47 ,
Implementing Adobe Analytics in a ReactJS application, especially for Smart TVs (Samsung, LG), involves integrating the Adobe Experience Platform Web SDK or AppMeasurement.js, depending on the Adobe stack you're using. Given the Smart TV context, where web environments may be limited (e.g., no browser extensions, no full cookie support), you'll want to handle implementation efficiently and with minimal dependencies.
Step-by-Step Guide to Implement Adobe Analytics in ReactJS (for Smart TVs)
Choose the Integration Method
You typically have two options:
-
AppMeasurement.js (Classic Adobe Analytics Library)
-
Adobe Experience Platform Web SDK (alloy.js)
- For Classic Adobe Analytics Library
-
Follow the AppMeasurement.js guide to:
-
Instrument your React components:
-
Call s.t() for page loads inside useEffect
-
Use s.tl() for custom interactions (e.g., remote key presses, video control)
-
Test thoroughly on Smart TVs:
For Smart TVs:
-
Stick to AppMeasurement.js unless AEP Web SDK is strictly required.
-
Minimize dependencies and test tracking in slow/limited environments.
-
Use React hooks and utils to keep tracking logic clean and centralized