Git Product home page Git Product logo

Comments (3)

ivolo avatar ivolo commented on May 30, 2024

Sounds like I'm doing something stupid here :) I'm gonna fix this up for you, I'll ping you early next week once the fix is ready.

from analytics.net.

jamescrosswell avatar jamescrosswell commented on May 30, 2024

Thanks... after my original post though, I dug into the source code and realized that the providers don't get added as items in the context dictionary... instead they are kept in an internal property (that is none the less serialized when the Context object gets sent to SegmentIO):

[JsonProperty(PropertyName = "providers")]
internal Providers providers;

I actually added a few unit tests to verify this (which I believe I sent you a pull request for - although in hindsight I probably should has split those into a separate commit, since the pull request I sent you includes some other changes too).

So basically, I've got no idea why Segment.IO isn't respecting the provider configuration that I'm specifying - it would require some lower level debugging perhaps (looking at the HTTP requests that get sent to the REST API and making sure they look like they should).

For the time being, I've worked the need to override the provider configuration. Originally, my plan was to use the session id as the user id for events that happen before users log in and then specify providers in the context to make sure SegmentIO only pushed these anonymous events up to Google Analytics (and not up to places like Customer.IO, where events without customers don't make any sense). Instead, now I'm using "anonymous" as the user id and just passing the session id as an additional property... that way I only need one "catchall" user in Customer.IO for these anonymous events... so it's not such a problem if they get sent to all the providers I have configured.

This is obviously just a work around though and doesn't solve the original problem.

from analytics.net.

ivolo avatar ivolo commented on May 30, 2024

This is fixed in newly released version 2.0.0. Check out the new docs - Woo!

from analytics.net.

Related Issues (20)

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.