@funnelsgrove/runtime 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,8 +79,18 @@ export const bootstrapPostHog = (config) => {
79
79
  primePostHogFlagScopePersistence(config.apiKey, scopeProperties);
80
80
  posthog.init(config.apiKey, {
81
81
  api_host: config.apiHost,
82
+ ui_host: 'https://us.posthog.com',
82
83
  persistence: 'localStorage+cookie',
83
84
  person_profiles: 'identified_only',
85
+ autocapture: false,
86
+ capture_pageview: false,
87
+ capture_pageleave: false,
88
+ capture_dead_clicks: false,
89
+ capture_exceptions: false,
90
+ capture_heatmaps: false,
91
+ capture_performance: false,
92
+ disable_session_recording: true,
93
+ disable_surveys: true,
84
94
  advanced_disable_feature_flags_on_first_load: true,
85
95
  bootstrap: { distinctID: config.distinctId },
86
96
  loaded: () => {
@@ -3,7 +3,7 @@ export declare const FUNNEL_SDK_PUBLISHABLE_KEY: string;
3
3
  export declare const FUNNEL_ID: string;
4
4
  export declare const FUNNEL_VERSION_ID: string;
5
5
  export declare const PROJECT_ID: string;
6
- export declare const POSTHOG_API_HOST = "https://us.i.posthog.com";
6
+ export declare const POSTHOG_API_HOST = "/ingest";
7
7
  export declare const POSTHOG_PROJECT_API_KEY: string;
8
8
  export declare const hasPostHogRuntimeConfig: () => boolean;
9
9
  export declare const hasRealFunnelSdkPublishableKey: (value?: string) => boolean;
@@ -22,7 +22,7 @@ export const FUNNEL_SDK_PUBLISHABLE_KEY = runtimePublicConfig.funnelSdkPublishab
22
22
  export const FUNNEL_ID = runtimePublicConfig.funnelId;
23
23
  export const FUNNEL_VERSION_ID = runtimePublicConfig.funnelVersionId;
24
24
  export const PROJECT_ID = runtimePublicConfig.projectId;
25
- export const POSTHOG_API_HOST = 'https://us.i.posthog.com';
25
+ export const POSTHOG_API_HOST = '/ingest';
26
26
  export const POSTHOG_PROJECT_API_KEY = runtimePublicConfig.posthogProjectApiKey;
27
27
  export const hasPostHogRuntimeConfig = () => {
28
28
  return Boolean(POSTHOG_API_HOST && POSTHOG_PROJECT_API_KEY && PROJECT_ID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/runtime",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",