1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

Merge pull request #2438 from Budibase/feature/posthog-cloud

Feature/posthog cloud
This commit is contained in:
Martin McKeaveney 2021-08-23 17:20:23 +01:00 committed by GitHub
commit 7b3ab92861
2 changed files with 4 additions and 2 deletions

View file

@ -79,6 +79,7 @@ const isFeedbackTimeElapsed = sinceDateStr => {
const feedbackMilliseconds = feedbackHours * 60 * 60 * 1000
return Date.now() > sinceDate + feedbackMilliseconds
}
function submitFeedback(values) {
if (!analyticsEnabled || !process.env.POSTHOG_TOKEN) return
localStorage.setItem(FEEDBACK_SUBMITTED_KEY, Date.now())

View file

@ -15,5 +15,6 @@ exports.AnalyticsEvents = {
SelfHostInit: "hosting_init",
}
exports.BUDIBASE_POSTHOG_URL = "https://posthog.budi.live"
exports.BUDIBASE_POSTHOG_TOKEN = "Oeq9KzIpZYaNsXIvHw5QTZWNpfiG_EOjAOpjTyAiitY"
exports.BUDIBASE_POSTHOG_URL = "https://app.posthog.com"
exports.BUDIBASE_POSTHOG_TOKEN =
"phc_yGOn4i7jWKaCTapdGR6lfA4AvmuEQ2ijn5zAVSFYPlS"