Skip to content

Commit

Permalink
docs: Google Analytics 4
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jul 13, 2023
1 parent cff896f commit 476f0eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
deploy-message: ${{ github.sha }} ${{ github.run_id }}
enable-pull-request-comment: false
enable-commit-comment: false
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: 7de100ca-e942-419d-af2c-18e6c528b96e
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2020-2022, Junxiao Shi
Copyright (c) 2020-2023, Junxiao Shi

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
1 change: 0 additions & 1 deletion docs/_redirects
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
https://esp32cam.netlify.app/* https://esp32cam.yoursunny.dev/:splat 301!
https://esp32cam.yoursunny.cn/* https://esp32cam.yoursunny.dev/:splat 301!
4 changes: 2 additions & 2 deletions docs/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -eo pipefail
set -euo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )"

doxygen Doxyfile 2>&1 | ./filter-Doxygen-warning.awk 1>&2

find html -name '*.html' | xargs sed -i '/<\/head>/ i\ <script>(function(e,t,n,i,s,a,c){e[n]=e[n]||function(){(e[n].q=e[n].q||[]).push(arguments)};a=t.createElement(i);c=t.getElementsByTagName(i)[0];a.async=true;a.src=s;c.parentNode.insertBefore(a,c)})(window,document,"galite","script","https://cdn.jsdelivr.net/npm/ga-lite@2/dist/ga-lite.min.js"); if (location.hostname.endsWith(".yoursunny.dev")) { galite("create", "UA-935676-14", "auto"); galite("send", "pageview"); }</script>'
find html -name '*.html' | xargs sed -i '/<\/head>/ i\<script async src="https://www.googletagmanager.com/gtag/js?id=G-YSW3MP43Z4"></script><script>window.dataLayer=[];function gtag(){dataLayer.push(arguments);}if(location.hostname.endsWith(".yoursunny.dev")){gtag("js",new Date());gtag("config","G-MLZ5G2C4X2");}</script></script>'
cp _redirects html/

0 comments on commit 476f0eb

Please sign in to comment.