- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
04-21-2020 11:18 AM - edited 04-22-2020 12:25 AM
I have seen old posts asking about how to do a React.js implementation but there was no real answer. Is there a recommended approach to including Tealium Utag in a React.js (NOT React Native) Web/Electron app? I see Angular etc. wondering whats best practice to get reference to the utag instance?
What I have done so far: Included the scripts to load the utag.js provided in the `code center`, this loads fine and testing it on the website things work fine I can call the utag via window:
window.utag.link({...etc})
however I've tried using the exact same script in the electron version of the app, and the bundled tags/extensions (utag.3.js utag.18.js etc..) fail because the request url is set to file:// rather than an external source, is there a way to tell it to make a http request for the files not locally?
Solved! Go to Solution.
Copyright All Rights Reserved © 2008-2023