Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 157950e

Browse files
author
John P Vajda
committed
feat: adds tessen config and library
1 parent 072bc92 commit 157950e

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

gatsby-config.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ module.exports = {
1515
{
1616
resolve: '@newrelic/gatsby-theme-newrelic',
1717
options: {
18-
gaTrackingId: 'UA-3047412-33',
1918
layout: {
20-
// 1180px (width) + 28px (padding) * 2 (left/right side)
2119
maxWidth: '1236px',
2220
contentPadding: '28px',
2321
},
@@ -66,6 +64,20 @@ module.exports = {
6664
// }
6765
},
6866
},
67+
tessen: {
68+
product: 'OSS',
69+
subproduct: 'TOSS',
70+
segmentWriteKey: 'AEfP8c1VSuFxhMdk3jYFQrYQV9sHbUXx',
71+
trackPageViews: true,
72+
pageView: {
73+
name: 'pageView',
74+
category: 'DocPageView',
75+
getProperties: ({ location, env }) => ({
76+
path: location.pathname,
77+
env: env === 'production' ? 'prod' : env,
78+
}),
79+
},
80+
},
6981
},
7082
},
7183
{

0 commit comments

Comments
 (0)