Skip to content

Commit

Permalink
ads and analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwihui committed May 26, 2024
1 parent 7e6cbda commit 3ac54d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 1 addition & 2 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ additional-js = ["theme/mermaid.min.js", "theme/mermaid-init.js"]
additional-css = ["./mdbook-admonish.css", "theme/css/mdbook-admonish.css", "theme/css/open-in.css"]
git-repository-url = "https://github.com/qiwihui/blog"
open-on-text = "Found a bug?! [Edit this page on GitHub.]"
edit-url-template = "https://github.com/qiwihui/blog/edit/main/{path}"
edit-url-template = "https://github.com/qiwihui/blog/edit/master/{path}"
curly-quotes = true # replaces straight quotes with curly quotes


[output.html.fold]
enable = true # whether or not to enable section folding
level = 0 # the depth to start folding
Expand Down
1 change: 1 addition & 0 deletions src/ads.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google.com, pub-8935595858652656, DIRECT, f08c47fec0942fa0
23 changes: 22 additions & 1 deletion theme/head.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
<meta property="og:title" content="{{ path }}" />
<meta property="og:title" content="{{ path }}" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VM8FXQ87H5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VM8FXQ87H5');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8935595858652656"
crossorigin="anonymous"></script>
<!-- blog article -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8935595858652656"
data-ad-slot="2188805090"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

0 comments on commit 3ac54d0

Please sign in to comment.