• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / fx-private-relay / e6596aaf-157d-4581-acf2-f4e4f97a1130

21 Sep 2023 08:17PM CUT coverage: 74.433% (-0.1%) from 74.552%
e6596aaf-157d-4581-acf2-f4e4f97a1130

push

circleci

web-flow
Merge pull request #3907 from mozilla/fix-ga-events-MPP-3422

Fix ga events mpp 3422

1895 of 2761 branches covered (0.0%)

Branch coverage included in aggregate %.

21 of 21 new or added lines in 5 files covered. (100.0%)

5977 of 7815 relevant lines covered (76.48%)

18.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/frontend/src/components/layout/navigation/UpgradeButton.tsx
1
import { event as gaEvent } from "react-ga";
8✔
2

3
import styles from "./UpgradeButton.module.scss";
8✔
4
import { useGaViewPing } from "../../../hooks/gaViewPing";
8✔
5
import Link from "next/link";
8✔
6
import { useL10n } from "../../../hooks/l10n";
8✔
7

8
export const UpgradeButton = (): JSX.Element => {
70✔
9
  const l10n = useL10n();
70✔
10
  const upgradeButtonRef = useGaViewPing({
70✔
11
    category: "Purchase Button",
12
    label: "navbar-upgrade-button",
13
  });
14

15
  return (
16
    <Link
17
      href="/premium#pricing"
18
      ref={upgradeButtonRef}
19
      id={styles["upgrade-button"]}
20
      onClick={() => {
21
        gaEvent({
×
22
          category: "Purchase Button",
23
          action: "Engage",
24
          label: "navbar-upgrade-button",
25
        });
26
      }}
27
    >
28
      {l10n.getString("menu-upgrade-button")}
29
    </Link>
30
  );
31
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc