You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ This will add the necessary script tags to the bottom of the `head` of your web
60
60
61
61
You'll need to configure the module by passing it an object as an angular `constant` named `googleAnalyticsConfig`.
62
62
63
+
Optionally, you can also use an array of configurations if you need to add multiple tag managers to your page.
64
+
63
65
#### Required
64
66
| name | type | usage |
65
67
|------|-------------|--------|
@@ -85,7 +87,8 @@ You'll need to configure the module by passing it an object as an angular `const
85
87
| name | type | usage |
86
88
|------|-------------|--------|
87
89
|`externalScriptURL`|`string`| If you are using an alternative URL, specify the source of the external script that is loaded. Use `null` if you don't want an external script to be loaded (especially for legacy Google Analytics using an `inlineScript`) |
88
-
|`inlineScript`|`string`| Specify the inline script tag to be inserted below the external script tag. ||
90
+
|`inlineScript`|`string`| Specify the inline script tag to be inserted below the external script tag. |
91
+
|`target`|`string`| (default: `'head'`) What element on the document you would like to append the injected script to. E.g. `body`. Uses `document.querySelector` to find the first instance of the element. ||
0 commit comments