Giter VIP home page Giter VIP logo

react-segment's People

Contributors

anishmprasad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-segment's Issues

React 17 support

I am having conflicts because the dependency is on an old version of react. Could you please add support to newer versions?

Custom events not working

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.

image

@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

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.