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 6db86e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Publish Hugo Documentation On New Tag
on:
push:
# branches:
# - master
# Update for given branch for one of releases, otherwise only release on tags
# - feature/fixingReleaseDocs
branches:
- 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 6db86e6

Please sign in to comment.