DPDK website maintenance
 help / color / mirror / Atom feed
* [PATCH] integrate Google Analytics
@ 2023-06-29  6:39 Thomas Monjalon
  0 siblings, 0 replies; only message in thread
From: Thomas Monjalon @ 2023-06-29  6:39 UTC (permalink / raw)
  To: web; +Cc: Ben Thomas

For marketing purpose, statistics are collected in Google Analytics
with an account managed by the Linux Foundation.

Requested-by: Ben Thomas <bthomas@linuxfoundation.org>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 layouts/partials/custom-head.html | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/layouts/partials/custom-head.html b/layouts/partials/custom-head.html
index 9f510bb..5408266 100644
--- a/layouts/partials/custom-head.html
+++ b/layouts/partials/custom-head.html
@@ -2,3 +2,12 @@
 <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.css">
 <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/dpdk.css">
 <link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+
+<!-- Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-KDHYQZK4GW"></script>
+<script>
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
+  gtag('config', 'G-KDHYQZK4GW');
+</script>
-- 
2.41.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-29  6:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-29  6:39 [PATCH] integrate Google Analytics Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).