Skip to content
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 analytics to RTF link clicks in result cards. #852

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

tmeyer2115
Copy link
Collaborator

This PR ensures that for all result cards, when an RTF link is clicked, the correct AnalyticsEvent is fired. This code is largely taken from the SDK's CardComponent class. The only difference is in how some of the event options are computed.

J=SLAP-1403
TEST=manual

Tested the following:

  • Event was properly fired for a link click on vertical.
  • Event was properly fired for a link click on universal.
  • Clicking elsewhere on an RTF value (not a link) did not cause an event to fire.

This PR ensures that for all result cards, when an RTF link is clicked, the
correct `AnalyticsEvent` is fired. This code is largely taken from the SDK's
`CardComponent` class. The only difference is in how some of the event options
are computed.

J=SLAP-
TEST=manual

Tested the following:
@coveralls
Copy link

Coverage Status

Coverage remained the same at 5.881% when pulling 5d08f9a on dev/rtf-analytics-for-card into 6129782 on hotfix/v1.22.1.

@tmeyer2115 tmeyer2115 merged commit c20c4d4 into hotfix/v1.22.1 Jun 28, 2021
@tmeyer2115 tmeyer2115 deleted the dev/rtf-analytics-for-card branch June 28, 2021 15:46
@tmeyer2115 tmeyer2115 mentioned this pull request Jun 29, 2021
tmeyer2115 added a commit that referenced this pull request Jun 29, 2021
### Bug Fixes
- Analytics events are now fired when RTF links are clicked in a result card or direct answer card. (#852, #856)
@tmeyer2115 tmeyer2115 mentioned this pull request Jun 29, 2021
tmeyer2115 added a commit that referenced this pull request Jun 29, 2021
### Bug Fixes
- Analytics events are now fired when RTF links are clicked in a result card or direct answer card. (#852, #856)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants