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

GH-2220: Onboarding Telemetry #676

Merged
merged 3 commits into from Feb 3, 2021
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Use one time hook to send a ping when user reaches the success view page

  • Loading branch information
benstrumeyer committed Feb 3, 2021
commit e1173ff1d590709ad069f6bc38ff77905172b827
@@ -11,7 +11,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0
*/

import React, { Fragment } from 'react';
import React, { Fragment, useEffect } from 'react';
import { NavLink } from 'react-router-dom';

/**
@@ -23,8 +23,11 @@ const SuccessView = (props) => {
const { actions } = props;
const { sendPing } = actions;

const handleCTAButtonClick = () => {
useEffect(() => {
sendPing({ type: 'gb_onboarding_success' });
}, []);

const handleCTAButtonClick = () => {
window.close();
};

ProTip! Use n and p to navigate between commits in a pull request.