We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53d9632 commit a80b888Copy full SHA for a80b888
src/codes/clj/docs/frontend/infra/analytics.cljs
@@ -14,11 +14,11 @@
14
(defn google-tag
15
[ga-tag-id gtm-script]
16
(let [script (js/document.createElement "script")]
17
- (set! (.-src script) (str "window.dataLayer = window.dataLayer || [];
18
- function gtag(){dataLayer.push(arguments);}
19
- gtag('js', new Date());
20
-
21
- gtag('config', '" ga-tag-id "');"))
+ (set! (.-text script) (str "window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', '" ga-tag-id "');"))
22
(js/document.head.insertBefore script (.-nextSibling gtm-script))))
23
24
(defn ga-scripts
0 commit comments