mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
update telemetry endpoint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { hashString } from "./utils";
|
||||
|
||||
/* We use this telemetry service to better understand how snoopForms is being used
|
||||
/* We use this telemetry service to better understand how Formbricks is being used
|
||||
and how we can improve it. All data including the IP address is collected anonymously
|
||||
and we cannot trace anything back to you or your customers. If you still want to
|
||||
disable telemetry, set the environment variable TELEMETRY_DISABLED=1 */
|
||||
@@ -12,11 +12,11 @@ export const captureTelemetry = async (eventName: string, properties = {}) => {
|
||||
process.env.NEXTAUTH_URL !== "http://localhost:3000"
|
||||
) {
|
||||
try {
|
||||
await fetch("https://posthog.snoopforms.com/capture/", {
|
||||
await fetch("https://eu.posthog.com/capture/", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
api_key: "phc_BTq4eagaCzPyUSURXVYwlScTQRvcmBDXjYh7OG6kiqw",
|
||||
api_key: "phc_jz3ZKXXxhXZbM3pzzVh2Bl6O7hoXgPaIQRCBRQLjnrg",
|
||||
event: eventName,
|
||||
properties: {
|
||||
distinct_id: hashString(process.env.NEXTAUTH_URL),
|
||||
|
||||
Reference in New Issue
Block a user