Skip to content

Commit a80b888

Browse files
committed
Fix google-tag script
1 parent 53d9632 commit a80b888

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/codes/clj/docs/frontend/infra/analytics.cljs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
(defn google-tag
1515
[ga-tag-id gtm-script]
1616
(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 "');"))
17+
(set! (.-text script) (str "window.dataLayer = window.dataLayer || [];
18+
function gtag(){dataLayer.push(arguments);}
19+
gtag('js', new Date());
20+
21+
gtag('config', '" ga-tag-id "');"))
2222
(js/document.head.insertBefore script (.-nextSibling gtm-script))))
2323

2424
(defn ga-scripts

0 commit comments

Comments
 (0)