Skip to content

Commit

Permalink
Upgrade to new GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
obokaman-com committed Mar 14, 2023
1 parent 8eed48b commit f49c5dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ theme = "hugo-product-launch"
# The "title" of your website
title = "Lura Project - An Open Source Api Gateway Framework"

googleAnalytics = 'UA-87994359-6'
googleAnalytics = 'G-77C4WHS94J'

# Render line-breaks in .md-files as line-breaks in HTML.
# This is e.g. useful for rendering a multi-line address.
Expand Down
10 changes: 9 additions & 1 deletion layouts/partials/custom_head.html
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
{{ template "_internal/google_analytics_async.html" . }}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-77C4WHS94J"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

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

0 comments on commit f49c5dd

Please sign in to comment.