diff --git a/src/api/layers/host.layer.ts b/src/api/layers/host.layer.ts index 153cb4acf..97a66048a 100644 --- a/src/api/layers/host.layer.ts +++ b/src/api/layers/host.layer.ts @@ -143,6 +143,7 @@ export class HostLayer { disableGoogleAnalytics: this.options.disableGoogleAnalytics, googleAnalyticsId: this.options.googleAnalyticsId, linkPreviewApiServers: this.options.linkPreviewApiServers, + poweredBy: this.options.poweredBy, }; await evaluateAndReturn( diff --git a/src/config/create-config.ts b/src/config/create-config.ts index 106dd9527..20ed23997 100644 --- a/src/config/create-config.ts +++ b/src/config/create-config.ts @@ -155,6 +155,12 @@ export interface CreateConfig { * @default null */ googleAnalyticsId?: string | null; + + /** + * Custom variable for Google Analytics + * @default 'WPPConnect' + */ + poweredBy?: string; } export const defaultOptions: CreateConfig = { @@ -179,4 +185,5 @@ export const defaultOptions: CreateConfig = { linkPreviewApiServers: null, disableGoogleAnalytics: true, googleAnalyticsId: null, + poweredBy: 'WPPConnect', };