@agence-zef/astro 0.11.1 → 0.11.2
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.
|
@@ -67,8 +67,11 @@ const locale = Astro.currentLocale ?? "";
|
|
|
67
67
|
document.head.append(s);
|
|
68
68
|
const w = window as unknown as { dataLayer: unknown[]; gtag: (...args: unknown[]) => void };
|
|
69
69
|
w.dataLayer = w.dataLayer || [];
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// `gtag.js` ne lit que l'objet `arguments` : un tableau (`...args`) est ignoré et aucune
|
|
71
|
+
// mesure ne part.
|
|
72
|
+
w.gtag = function () {
|
|
73
|
+
// biome-ignore lint/complexity/noArguments: exigé par gtag.js
|
|
74
|
+
w.dataLayer.push(arguments);
|
|
72
75
|
};
|
|
73
76
|
w.gtag("js", new Date());
|
|
74
77
|
w.gtag("config", id, { anonymize_ip: true });
|
package/package.json
CHANGED