Skip to content

Commit

Permalink
Adding a google analytics tracking on the hugo website.
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Mar 18, 2024
1 parent 89563e6 commit 3dbdbde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Hugo Documentation On New Tag
on:
push:
# branches:
branches:
# - master
# Update for given branch for one of releases, otherwise only release on tags
# - feature/fixingReleaseDocs
- feature/docsFixes
tags:
- v*

Expand Down
11 changes: 10 additions & 1 deletion website/layouts/partials/head/script-header.html
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
<!-- Insert scripts NOT needed by stylesheets here -->
<!-- Insert scripts NOT needed by stylesheets here -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PH90PJ3LF8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

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

0 comments on commit 3dbdbde

Please sign in to comment.