Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build/antora_build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ npm ls -g --depth=0
if [ "$PROD_SITE" = true ]
then
# Enable google analytics in docs
antora --fetch --stacktrace --key google-analytics=GTM-TKP3KJ7 src/main/content/docs/antora-playbook.yml
antora --fetch --stacktrace --key google-analytics=G-PXYTWCYE18 src/main/content/docs/antora-playbook.yml
else
antora --fetch --stacktrace src/main/content/docs/antora-playbook.yml
fi
2 changes: 1 addition & 1 deletion src/main/content/_google_analytics.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google_tag_manager: GTM-TKP3KJ7
google_tag_manager:G-PXYTWCYE18
3 changes: 0 additions & 3 deletions src/main/content/_includes/analytics.html

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/content/_includes/google_tag_manager_body.html

This file was deleted.

12 changes: 7 additions & 5 deletions src/main/content/_includes/google_tag_manager_head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ site.google_tag_manager }}');</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PXYTWCYE18"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PXYTWCYE18');
</script>
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Untitled"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle='Untitled'}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/general-reference.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Untitled"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/javadoc.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Javadoc"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ site.keys.googleAnalytics }}');</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PXYTWCYE18"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PXYTWCYE18');
</script>
Loading