Skip to content

Commit

Permalink
use native google analytics mechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 committed Jan 3, 2024
1 parent 746f3dd commit aad6524
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
5 changes: 2 additions & 3 deletions src/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ params:
# google:
# SiteVerificationTag: "XYZabc"

# Custom GA 4 variable
googleAnalyticsID: G-SN17T8LEL9

assets:
favicon: "/favicon.png"
favicon16x16: "/favicon.png"
Expand Down Expand Up @@ -195,3 +192,5 @@ services:
disableInlineCSS: true
twitter:
disableInlineCSS: true
googleAnalytics:
ID: G-SN17T8LEL9
3 changes: 0 additions & 3 deletions src/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

<head>
{{- partial "head.html" . }}
{{ if .Site.Params.GoogleAnalyticsID }}
{{ partial "analytics-gtag.html" . }}
{{ end }}
</head>

<body class="
Expand Down
9 changes: 0 additions & 9 deletions src/layouts/partials/analytics-gtag.html

This file was deleted.

0 comments on commit aad6524

Please sign in to comment.