Skip to content

Commit

Permalink
📝 Add Google Analytics tag and information
Browse files Browse the repository at this point in the history
  • Loading branch information
agung2001 committed Dec 22, 2022
1 parent 40b9cbf commit e6666ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/autocommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
ref: master
ref: develop

- name: Print github secret ☢️
run: echo "GITHUB_TOKEN=${{ secrets.REST_API_TOKEN }}" > .env
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ docker run -d -p 80:80 \
### Distro
I made [DISTRO](DISTRO.md) to list a profile and customization you made to this repo.

### Google Analytics
To easily track visitors I use Google Analytics and put the code inside [index.html](index.html)
You can change the code with your own, if you also want to track the visitors coming to the website.

## 🔥 Development
- Install node package `npm install`
- Generate `nodes.json` and `edges.json` by running `node index.js`
Expand Down
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,15 @@
<!--Live Reload-->
<script src="//localhost:35729/livereload.js"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6W92JJ1VT6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-6W92JJ1VT6');
</script>

</body>
</html>

0 comments on commit e6666ab

Please sign in to comment.