anishmprasad / react-segment Goto Github PK
View Code? Open in Web Editor NEWSegment integration for react
License: MIT License
Segment integration for react
License: MIT License
I am having conflicts because the dependency is on an old version of react. Could you please add support to newer versions?
I've successfully installed Segment using this tool which is amazing - I'm seeing page views appear in the Segment debugger.
However, when I try to perform event tracking the events never appear in the Segment debugger. I've verified that there are no problems in the console but I'm not sure how to continue debugging.
Here's how I'm firing the custom event
export const emitMetric = (category, action, label) => {
analytics.default.track(category, {
action: action,
label: label,
})
};
this function is called from various parts of my codebase. I've verified with the chrome debugger that these lines of code are hit during navigation of the website. Even still, I don't see the events appear in the Segment debugger.
I've verified that the debugger has all event types filtered too.
@anishmprasad any chance you know why I might not be getting events here? Could it be a problem with the package or how I'm using it?
EDIT: and here's the chrome debugger successfully hitting the function with string values
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.