-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EP-225] CTA Clicked (pledge_initiate) #1383
Conversation
* Adding tests for CTA Clicked event and pledge_initiate context in the event properties
Codecov Report
@@ Coverage Diff @@
## master #1383 +/- ##
=======================================
Coverage 85.86% 85.86%
=======================================
Files 1104 1104
Lines 96140 96147 +7
=======================================
+ Hits 82550 82558 +8
+ Misses 13590 13589 -1
Continue to review full report at Codecov.
|
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.
Looks good, just a couple of small changes.
* Add CTA Context test to PledgeCTAContainerViewModel
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.
left a small comment but lgtm
Library/Tracking/KSRAnalytics.swift
Outdated
@@ -764,9 +763,10 @@ public final class KSRAnalytics { | |||
case .pledge: | |||
let allProps = props | |||
.withAllValuesFrom(optimizelyProperties) |
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.
Ah, sorry, I missed this earlier but can you get rid of the optimizelyProperties
param. It doesn't look like the new event requires this info.
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.
When I got rid of it, this test testTrackingEvents_Pledge()
in PledgeCTAContainerViewViewModelTests
fails, because it checks for those optimizelyProperties
# Conflicts: # Library/Tracking/KSRAnalytics.swift
馃摬 What
"Project Page Pledge Button Clicked" event is updated to CTA Clicked with pledge_initiate context
馃 Why
Convert DataLake event to Segment event