Skip to content

Commit 377af0a

Browse files
rapphilAneurysm9
andauthored
Add support to Analytics using Cloudwatch RUM (#367)
Co-authored-by: Anthony Mirabella <[email protected]>
1 parent ca7a378 commit 377af0a

File tree

6 files changed

+3557
-309
lines changed

6 files changed

+3557
-309
lines changed

gatsby-config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ module.exports = {
3232
token: process.env.GH_API_KEY,
3333
},
3434
},
35+
{
36+
resolve: require.resolve(`./src/plugins/websiteAnalyticsPlugin`),
37+
options: {
38+
// https://github.com/aws-observability/aws-rum-web/blob/main/docs/configuration.md
39+
applicationId: "9948254b-cc33-4c70-869d-2fd6615a914c",
40+
applicationVersion: "1.0.0",
41+
applicationRegion: "us-west-2",
42+
endpoint: "https://dataplane.rum.us-west-2.amazonaws.com",
43+
sessionSampleRate: 1,
44+
guestRoleArn: "arn:aws:iam::611364707713:role/SiteAnalyticsStack-AdotWebSiteAnalyticsAdotWebSite-1R6C5CIIDEABQ",
45+
identityPoolId: "us-west-2:426eefd0-dee5-4e37-b281-618a29de085e",
46+
telemetries: ["errors", "performance", "http"],
47+
allowCookies: false,
48+
enableXRay: false
49+
},
50+
},
3551
`gatsby-transformer-yaml`,
3652
{
3753
resolve: `gatsby-source-filesystem`,

0 commit comments

Comments
 (0)