Skip to content

Commit fb0ebe5

Browse files
committed
feat: replace tessen with browser agent
1 parent 525eee6 commit fb0ebe5

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

gatsby-config.js

-15
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,6 @@ module.exports = {
9696
errorBeacon: 'staging-bam-cell.nr-data.net',
9797
},
9898
},
99-
tessen: {
100-
tessenVersion: '1.14.0',
101-
product: 'DEV',
102-
subproduct: 'TDEV',
103-
segmentWriteKey: 'Ako0hclX8WGHwl9rm4n5uxLtT4wgEtuU',
104-
trackPageViews: true,
105-
pageView: {
106-
eventName: 'pageView',
107-
category: 'DocPageView',
108-
getProperties: ({ location, env }) => ({
109-
path: location.pathname,
110-
env: env === 'production' ? 'prod' : env,
111-
}),
112-
},
113-
},
11499
},
115100
},
116101
{

gatsby-node.js

-3
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,5 @@ exports.onCreateWebpackConfig = ({ actions, plugins }) => {
313313
// recommendation:
314314
// https://github.com/escaladesports/legacy-gatsby-plugin-prefetch-google-fonts/issues/18
315315
plugins: [plugins.normalModuleReplacement(/^\.\/node\.js/, './browser.js')],
316-
externals: {
317-
tessen: 'Tessen',
318-
},
319316
});
320317
};

src/components/DevSiteSeo.js

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ function DevSiteSeo({ description, meta, title, tags, location, type }) {
8181
{validMetadata.map((data, index) => (
8282
<meta key={`${data.name}-${index}`} {...data} />
8383
))}
84-
<script src={withPrefix('tessen.min-1.3.0.js')} type="text/javascript" />
8584
</SEO>
8685
);
8786
}

src/components/SignupLink.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import React, { forwardRef } from 'react';
22
import PropTypes from 'prop-types';
33
import { useLocation } from '@reach/router';
4-
import { useLocale, useTessen, Icon } from '@newrelic/gatsby-theme-newrelic';
4+
import {
5+
useLocale,
6+
addPageAction,
7+
Icon,
8+
} from '@newrelic/gatsby-theme-newrelic';
59
import { localizePath } from '../utils/localizePath';
610
import { css } from '@emotion/react';
711

@@ -17,7 +21,6 @@ const formatHref = (href, { locale }) => {
1721

1822
const SignUpLink = forwardRef(
1923
({ href, onClick, instrumentation, ...props }, ref) => {
20-
const tessen = useTessen();
2124
const location = useLocation();
2225
const locale = useLocale();
2326

@@ -34,7 +37,7 @@ const SignUpLink = forwardRef(
3437
onClick(e);
3538
}
3639

37-
tessen.track({
40+
addPageAction({
3841
eventName: 'stitchedPathLinkClick',
3942
category: 'DocPageLinkClick',
4043
href,

0 commit comments

Comments
 (0)