switch posthog for matomo

This commit is contained in:
2021-07-17 18:28:54 -07:00
parent dc4176c47a
commit 09838c900a
6 changed files with 17 additions and 26 deletions

View File

@@ -12,13 +12,11 @@ import {
import { GatsbyImage, getImage } from "gatsby-plugin-image";
import { Helmet } from "react-helmet";
import classnames from "classnames";
import posthog from "posthog-js";
import MetadataItem from "./MetadataItem";
const logKeyShortcut = (keyCode) => {
try {
// eslint-disable-next-line
posthog.capture("[key shortcut]", { keyCode });
window.plausible("KeyShortcut", { props: { keyCode } });
} catch (e) {
/* do nothing */