-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[NT-645] Clean discovery properties & events [Part 1] #984
Conversation
Generated by 🚫 Danger |
…NT-645-clean-discover-properties
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.
Nice lgtm, minor comments.
public func trackDiscoveryPullToRefresh() { | ||
self.track(event: "Triggered Refresh") | ||
public func trackEditorialHeaderTapped(refTag: RefTag) { | ||
self.track(event: "Editorial Card Clicked", properties: ["ref_tag": refTag.stringTag]) |
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.
Should this not include Discover Properties? Like:
discoveryProperties(from: params).withAllValuesFrom(["ref_tag": refTag.stringTag])
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.
I don't think its really useful in this case because the next event should be Collection Viewed
which does include discover properties
🤷♀
Library/Tracking/Koala.swift
Outdated
|
||
private func discoveryProperties( | ||
from params: DiscoveryParams, | ||
prefix _: String = "discover_" |
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.
This seems unused in this function, do we want to use it on line 2194
?
@@ -198,3 +198,25 @@ extension RefTag: Argo.Decodable { | |||
} | |||
} | |||
} | |||
|
|||
extension RefTag { | |||
public static func fromParams(_ params: DiscoveryParams) -> RefTag { |
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.
Now that this is extracted from the VM we probably want to add a test for it.
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.
* WIP cleaning up discovery properties * Cleaning up events * Updating tests * Formatting * Reverting scheme change * Line length * Remove category_projects_count prop * Updates * Formatting * Cleanup * Formatting * RefTag fromParams tests and snake-casing search term
📲 What
Part 1 of cleaning up our discovery, search, and activities events and properties.
🤔 Why
We're doing some cleanup of our events.
🛠 How
♿️ Accessibility
N/A
🏎 Performance
N/A
✅ Acceptance criteria
When testing, be sure to enable
KOALA_TRACKING
in the Kickstarter-iOS scheme.Explore Page Viewed
fires anytime a new discovery page is viewed. It should not fire on pagination.Explore Sort Clicked
fires any time a sort is tapped (Ending soon, Popular, etc).Activity Feed Viewed
fires any time a logged in user views their activity feed. It should not fire on pagination.Editorial Card Clicked
fires if an editorial card (ex. Go rewardless) is tapped.Collection Viewed
fires when an editorial collection of projects is viewed (ex. "Go rewardless")Filter Clicked
fires when a category from the Explore dropdown is selectedSearch Page Viewed
fires when the search tab is viewedSearch Results Loaded
fires after entering a search query when results have loadedDefault discovery properties should include the following properties:
discover_recommended
discover_social
discover_staff_picks
discover_starred
discover_tag
discover_everything
discover_sort
discover_ref_tag
search_term
discover_category_id
discover_category_name
discover_parent_category_id
discover_parent_category_name