Skip to content

Commit

Permalink
Merge pull request #2260 from newrelic/clark/sunset-tessen
Browse files Browse the repository at this point in the history
Sunset Tessen
  • Loading branch information
clarkmcadoo authored Jan 25, 2024
2 parents 525eee6 + 976192b commit 5df8180
Show file tree
Hide file tree
Showing 6 changed files with 1,032 additions and 33 deletions.
18 changes: 4 additions & 14 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,10 @@ module.exports = {
errorBeacon: 'staging-bam-cell.nr-data.net',
},
},
tessen: {
tessenVersion: '1.14.0',
product: 'DEV',
subproduct: 'TDEV',
segmentWriteKey: 'Ako0hclX8WGHwl9rm4n5uxLtT4wgEtuU',
trackPageViews: true,
pageView: {
eventName: 'pageView',
category: 'DocPageView',
getProperties: ({ location, env }) => ({
path: location.pathname,
env: env === 'production' ? 'prod' : env,
}),
},
segment: {
segmentWriteKey: 'noviNOFjASOSPcSEAkwoRxOt0Y1719KD',
section: 'developer',
platform: 'developer_pages',
},
},
},
Expand Down
3 changes: 0 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,5 @@ exports.onCreateWebpackConfig = ({ actions, plugins }) => {
// recommendation:
// https://github.com/escaladesports/legacy-gatsby-plugin-prefetch-google-fonts/issues/18
plugins: [plugins.normalModuleReplacement(/^\.\/node\.js/, './browser.js')],
externals: {
tessen: 'Tessen',
},
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@emotion/styled": "^11.10.0",
"@mdx-js/mdx": "^1.6.19",
"@mdx-js/react": "^1.6.19",
"@newrelic/gatsby-theme-newrelic": "9.1.0",
"@newrelic/gatsby-theme-newrelic": "9.2.7",
"@splitsoftware/splitio-react": "^1.2.0",
"@xstate/react": "^1.0.2",
"classnames": "^2.2.6",
Expand Down
3 changes: 1 addition & 2 deletions src/components/DevSiteSeo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { SEO } from '@newrelic/gatsby-theme-newrelic';
import { useStaticQuery, graphql, withPrefix } from 'gatsby';
import { useStaticQuery, graphql } from 'gatsby';

function DevSiteSeo({ description, meta, title, tags, location, type }) {
const { site } = useStaticQuery(
Expand Down Expand Up @@ -81,7 +81,6 @@ function DevSiteSeo({ description, meta, title, tags, location, type }) {
{validMetadata.map((data, index) => (
<meta key={`${data.name}-${index}`} {...data} />
))}
<script src={withPrefix('tessen.min-1.3.0.js')} type="text/javascript" />
</SEO>
);
}
Expand Down
9 changes: 6 additions & 3 deletions src/components/SignupLink.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
import { useLocation } from '@reach/router';
import { useLocale, useTessen, Icon } from '@newrelic/gatsby-theme-newrelic';
import {
useLocale,
addPageAction,
Icon,
} from '@newrelic/gatsby-theme-newrelic';
import { localizePath } from '../utils/localizePath';
import { css } from '@emotion/react';

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

const SignUpLink = forwardRef(
({ href, onClick, instrumentation, ...props }, ref) => {
const tessen = useTessen();
const location = useLocation();
const locale = useLocale();

Expand All @@ -34,7 +37,7 @@ const SignUpLink = forwardRef(
onClick(e);
}

tessen.track({
addPageAction({
eventName: 'stitchedPathLinkClick',
category: 'DocPageLinkClick',
href,
Expand Down
Loading

0 comments on commit 5df8180

Please sign in to comment.