-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add posthog to builder/manager (#3495)
* add posthog to builder * add ph to manager * fix lock/rebase errors * fix builder
- Loading branch information
1 parent
9af0952
commit 0ccd4d0
Showing
9 changed files
with
197 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import posthog from "posthog-js"; | ||
|
||
export const initPosthog = () => { | ||
console.log("Initializing Posthog"); | ||
if (process.env.REACT_APP_POSTHOG_KEY && process.env.REACT_APP_POSTHOG_HOST) { | ||
posthog.init(process.env.REACT_APP_POSTHOG_KEY, { | ||
api_host: process.env.REACT_APP_POSTHOG_HOST, | ||
session_recording: { | ||
maskTextSelector: '[data-testid="rk-account-button"]', | ||
}, | ||
}); | ||
|
||
console.log("Posthog initialized"); | ||
|
||
return posthog; | ||
} | ||
|
||
console.log("Posthog not initialized"); | ||
|
||
return undefined; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import posthog from "posthog-js"; | ||
|
||
export const initPosthog = () => { | ||
console.log("Initializing Posthog"); | ||
if (process.env.REACT_APP_POSTHOG_KEY && process.env.REACT_APP_POSTHOG_HOST) { | ||
posthog.init(process.env.REACT_APP_POSTHOG_KEY, { | ||
api_host: process.env.REACT_APP_POSTHOG_HOST, | ||
session_recording: { | ||
maskTextSelector: '[data-testid="rk-account-button"]', | ||
}, | ||
}); | ||
|
||
console.log("Posthog initialized"); | ||
|
||
return posthog; | ||
} | ||
|
||
console.log("Posthog not initialized"); | ||
|
||
return undefined; | ||
}; |
Oops, something went wrong.