-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
enhancementNew feature or requestNew feature or request
Description
π Your use case
Is it possible to add the source option into the Google tag manager paramaters like it is in https://github.com/zadigetvoltaire/nuxt-gtm
/**
* The URL of the script; useful for server-side GTM.
*
* @default https://www.googletagmanager.com/gtm.js
*/
source?: string;
π The solution you'd like
GoogleTagManagerOptions would include the ability to add the source as an option for server side GTM
export const GoogleTagManagerOptions = object({
/** GTM container ID (format: GTM-XXXXXX) */
id: string(),
/** Optional dataLayer variable name */
l: optional(string()),
/** Authentication token for environment-specific container versions */
auth: optional(string()),
/** Preview environment name */
preview: optional(string()),
/** Forces GTM cookies to take precedence when true */
cookiesWin: optional(union([boolean(), literal('x')])),
/** Enables debug mode when true */
debug: optional(union([boolean(), literal('x')])),
/** No Personal Advertising - disables advertising features when true */
npa: optional(union([boolean(), literal('1')])),
/** Custom dataLayer name (alternative to "l" property) */
dataLayer: optional(string()),
/** Environment name for environment-specific container */
envName: optional(string()),
/** Referrer policy for analytics requests */
authReferrerPolicy: optional(string()),
})
π Alternatives you've considered
No response
βΉοΈ Additional info
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request