-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dev NPS Survey Log & semaphore.signal() in Decide #537
Conversation
Sources/Network.swift
Outdated
class func trackIntegration(apiToken: String, serverURL: String, completion: @escaping (Bool) -> Void) { | ||
let requestData = JSONHandler.encodeAPIData([["event": "Integration", | ||
"properties": ["token": "85053bf24bba75239b16a601d9387e17", | ||
class func trackEvent(eventName: String, apiToken: String, distinctId: String, completion: @escaping (Bool) -> Void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better rename it or put some comments to avoid people using it by mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might not be an issue for SPM but could be an issue if they include the source code.
Sources/Mixpanel.swift
Outdated
'---------------------------------------------------------------------------------' | ||
""") | ||
UserDefaults.standard.set(surveyShownCount + 1, forKey: "MPSurveyShownCount") | ||
Network.trackEvent(eventName: "Dev NPS Survey Logged", apiToken: "metrics-1", distinctId: distinctId) { (_) in } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to add the property surveyShownCount
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a function that will occasionally log a link to our developer experience NPS survey
Adds an additional
semaphore.signal()
in Decide as a possible fix for #532