projects
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa95efe
)
switch back to plain old Google Analytics
author
Dan Allen
<dan@opendevise.com>
Fri, 5 Jul 2019 20:40:35 +0000
(14:40 -0600)
committer
Dan Allen
<dan@opendevise.com>
Fri, 5 Jul 2019 20:40:35 +0000
(14:40 -0600)
src/partials/head-scripts.hbs
patch
|
blob
|
history
diff --git
a/src/partials/head-scripts.hbs
b/src/partials/head-scripts.hbs
index
882f117
..
ddbaa95
100644
(file)
--- a/
src/partials/head-scripts.hbs
+++ b/
src/partials/head-scripts.hbs
@@
-1,4
+1,4
@@
{{#if site.keys.googleAnalytics}}
- <script
>(window.dataLayer=window.dataLayer||[]).push({'gtm.start':+new Date(),event:'gtm.js'})
</script>
- <script
async src="https://www.googletagmanager.com/gtm.js?id={{site.keys.googleAnalytics}}">
</script>
+ <script
async src="https://www.googletagmanager.com/gtag/js?id={{site.keys.googleAnalytics}}">
</script>
+ <script
>(window.dataLayer=window.dataLayer||[]).push(['js',new Date()],['config','{{site.keys.googleAnalytics}}'])
</script>
{{/if}}