Comments (4)
@alanjcharles can you update the documentation he cited? It's a bit confusing.
from analytics-swift.
Hi @nekto-zum you can reset a userId with the reset()
method: https://github.com/segmentio/analytics-swift/blob/main/Sources/Segment/Analytics.swift#L166
from analytics-swift.
I would actually argue that the reset()
option you are proposing is a bit too nuclear for a general usage. Imagine you have login/logout events. I don't necessary want to reset everything, I want just to drop user id. Can more granular setting be added? As I mentioned in the referenced code it is actually supported to pass nil...
from analytics-swift.
While I can understand your point of view, the intent here is to preserve privacy of the user(s). By resetting the anonymousId/user/etc via reset() there's nothing to link it back to a previous session. Our other libraries work this way and previous libs have worked this way for quite some time. So calling reset()
is the recommended path for what you're attempting to do.
from analytics-swift.
Related Issues (20)
- Typewritter- struct is not created for some events definision HOT 1
- Segment 1.4.0 issue with AppsFlyer HOT 4
- Library evolution error "No such module Sovran" when using the xcframework HOT 2
- Automatic Push notification tracking HOT 1
- Usage document link in Readme.md dead HOT 1
- Segment 1.4.3 does not build with SPM - `product 'Sovran' required by package 'analytics-swift' target 'Segment' not found.` HOT 1
- runtime error when integrating Segment xcframework: “Segment.framework” is damaged and can’t be opened. You should move it to the Bin. HOT 3
- In 1.4.x of analytics-swift the track() call in ObjCAnalytics forces properties to [Any, Codable] and NSDictionaries don't support Codable HOT 3
- Thread Sanitizer: Swift access race in Segment.CountBasedFlushPolicy.count.modify : Swift.Int at 0x11a75f4c0 HOT 6
- Incorrect OS version reported to Amplitude HOT 6
- App hanging when accessing userAgent value HOT 3
- Support Cocoapods HOT 2
- WriteKey Exposure in document directory HOT 1
- "is implemented in both" runtime errors when integrating xcframeworks HOT 3
- Asynchronous mechanism for enrichment in Plugins HOT 1
- Question: Is it safe to create more than one `Analytics` object with different `configuration`? HOT 1
- RequestFacotry configuration method desn't work HOT 3
- issues integrating xcframework ("Failed to build module 'Segment' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug") HOT 1
- How to specify event version HOT 1
- `context.app.name` is empty if `CFBundleDisplayName` is not included. `CFBundleDisplayName` is not required by Apple unless localized
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-swift.