@yysng/astro-boilerplate 1.1.6 → 1.1.7
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.
package/package.json
CHANGED
|
@@ -184,13 +184,16 @@ graph = graph.filter((item, idx, arr) => {
|
|
|
184
184
|
)}
|
|
185
185
|
|
|
186
186
|
{gtmId && (
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
<script
|
|
188
|
+
is:inline
|
|
189
|
+
set:html={`
|
|
190
|
+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
189
191
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
190
192
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
191
193
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
192
|
-
})(window,document,'script','dataLayer','${gtmId}')
|
|
193
|
-
|
|
194
|
-
|
|
194
|
+
})(window,document,'script','dataLayer','${gtmId}');
|
|
195
|
+
`}
|
|
196
|
+
/>
|
|
197
|
+
)}
|
|
195
198
|
|
|
196
199
|
</head>
|