Skip to content

Commit 6015277

Browse files
authored
Merge pull request #2968 from ably/web-4688-footer
[WEB-4688] Add UI basis for redesigned footer component
2 parents 9786a76 + 7b1361e commit 6015277

File tree

6 files changed

+298
-57
lines changed

6 files changed

+298
-57
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ INSIGHTS_ENABLED=false
1818
INSIGHTS_DEBUG=true
1919
POSTHOG_API_KEY=''
2020
POSTHOG_API_HOST=''
21+
POSTHOG_FEEDBACK_SURVEY_NAME=''
2122
MIXPANEL_API_KEY=''
2223
MIXPANEL_AUTO_CAPTURE=''
2324

gatsby-browser.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
reducerBlogPosts,
1010
reducerSessionData,
1111
} from '@ably/ui/core/scripts';
12+
import { PostHogProvider } from 'posthog-js/react';
13+
import posthog from 'posthog-js';
1214

1315
import { reducerApiKeyData } from './src/redux/api-key/api-key-reducer';
1416
import UserContextWrapper from './src/contexts/user-context/wrap-with-provider';
@@ -66,7 +68,7 @@ const InsightsWrapper = ({ children }) => {
6668
// eslint-disable-next-line react-hooks/exhaustive-deps
6769
}, []);
6870

69-
return children;
71+
return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
7072
};
7173

7274
export const wrapRootElement = ({ element }) => {

gatsby-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const siteMetadata = {
3838
mixpanelAutoCapture: !!process.env.MIXPANEL_AUTO_CAPTURE,
3939
posthogApiKey: process.env.POSTHOG_API_KEY,
4040
posthogHost: process.env.POSTHOG_API_HOST || 'https://insights.ably.com',
41+
posthogFeedbackSurveyName: process.env.POSTHOG_FEEDBACK_SURVEY_NAME || 'Docs Feedback',
4142
conversationsUrl: process.env.CONVERSATIONS_API_URL,
4243
},
4344
};

0 commit comments

Comments
 (0)