Comments (3)
+1, but in the meantime, you can use dangerouslySetInnerHTML
from analytics-react.
I encountered the same thing, check out this issue for my workaround.
from analytics-react.
You all could include the snippet on the index.html
of the app. I mean the file where you have the div
root.
This is also true for any other script that needs to be added on the page head of just before the close body tag.
from analytics-react.
Related Issues (15)
- GIF Link
- Referencing Windows.analytics throw compile error HOT 3
- What is the purpose of this repo? HOT 1
- staging vs production in Create React App? HOT 4
- Running segment on localhost:3000 HOT 2
- Programmatically Inject Analytics.js
- Enable/Disable Analytics in development ? HOT 2
- Test suite + code coverage HOT 1
- How to "unidentify" a user at logout? HOT 1
- Localhost implementation?
- GIF link
- Quickstart Link
- Segment, Google Analytics setup for the project.
- This would all be easier if you just published your actual *code* as a npm package, instead of an injection snippet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics-react.