Skip to content

LG-5948: Document more analytics events#6569

Closed
matthinz wants to merge 4 commits into18F:mainfrom
matthinz:analytics-events-27
Closed

LG-5948: Document more analytics events#6569
matthinz wants to merge 4 commits into18F:mainfrom
matthinz:analytics-events-27

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Jul 8, 2022

Document the following analytics events:

  • SP_HANDOFF_BOUNCED_DETECTED
  • SP_HANDOFF_BOUNCED_VISIT
  • SP_INACTIVE_VISIT
  • BACKUP_CODE_CREATED

@matthinz matthinz requested a review from zachmargolis July 8, 2022 22:34
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some small style suggestions

Also, I think that the changelog check script will fail, we need a commit message with a changelog will fail


def index
analytics.track_event(Analytics::SP_INACTIVE_VISIT)
analytics.sp_inactive_visit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd drop the optional parens here:

Suggested change
analytics.sp_inactive_visit()
analytics.sp_inactive_visit

class SpHandoffBouncedController < Devise::SessionsController
def bounced
analytics.track_event(Analytics::SP_HANDOFF_BOUNCED_VISIT)
analytics.sp_handoff_bounced_visit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto, no empty parens

Suggested change
analytics.sp_handoff_bounced_visit()
analytics.sp_handoff_bounced_visit

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.

2 participants