From 10b5414837fc272b73922e01d2fe24ddd5080293 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 15 Apr 2020 13:19:34 +0800 Subject: Google Analytics support --- exampleSite/config.toml | 3 +++ layouts/partials/analytic-google.html | 11 +++++++++++ layouts/partials/comment-utterances.html | 5 ++--- layouts/partials/head.html | 2 ++ 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/analytic-google.html diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1c7e770..62fceb9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,6 +15,9 @@ paginate = 10 [params] subTitle = "This is a Sub Title" + # Google Analytics + googleAnalyticsUA = "UA-000000000-0" + # Bangumi image chart id # bgmImageChart = "000000" diff --git a/layouts/partials/analytic-google.html b/layouts/partials/analytic-google.html new file mode 100644 index 0000000..2b5e74b --- /dev/null +++ b/layouts/partials/analytic-google.html @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html index 02575eb..6653661 100644 --- a/layouts/partials/comment-utterances.html +++ b/layouts/partials/comment-utterances.html @@ -1,5 +1,4 @@