Comments (3)
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.
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.
This is fixed in newly released version 2.0.0. Check out the new docs - Woo!
from analytics.net.
Related Issues (20)
- `Defaults` class removed with no way to access values elsewhere HOT 1
- Create config.yml for circle ci in .net solution HOT 1
- Question: Is this suitable for Xamarin integration? HOT 3
- Changing fields of Concrete implementations of BaseAction to Properties HOT 1
- Versioning Question Due to Error HOT 4
- Support for .NET 5.0 framework
- Events not sent to Segment servers: The operation was canceled. HOT 6
- Update e2e CircleCi config due to image problem
- e2e Testing failing in circleci
- AsyncIntervalFlushHandler deadlock HOT 3
- Encounter System.ObjectDisposedException after Dispose is called HOT 3
- Expose Message Id as a configurable option HOT 1
- Snyk.io reports issue with referenced Newtonsoft.Json package HOT 1
- Allow a mocked Client to be used for the Analytics singleton
- Remove dependency on Json.Net HOT 3
- Make it easier to get 'hidden' errors when trying to send data to Segment HOT 1
- Calling Analytics.Client.Flush() when there are pending events can cause deadlock HOT 8
- Why is the NuGet package unlisted? HOT 5
- Analytics.NET Midleware HOT 1
- My event is not being tracked, how do I troubleshoot it? HOT 1
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.net.