diff --git a/src/options.ts b/src/options.ts index 001e377..9dc10ef 100644 --- a/src/options.ts +++ b/src/options.ts @@ -58,6 +58,12 @@ export interface GtmSupportOptions { * @see [Using Google Tag Manager with a Content Security Policy](https://developers.google.com/tag-manager/web/csp) */ nonce?: string; + /** + * Where to append the script element. + * + * @default document.body + */ + parentElement?: HTMLElement; /** * The URL of the script; useful for server-side GTM. *