DPDK website maintenance
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: web@dpdk.org
Cc: Ben Thomas <bthomas@linuxfoundation.org>
Subject: [PATCH] integrate Google Analytics
Date: Thu, 29 Jun 2023 08:39:41 +0200	[thread overview]
Message-ID: <20230629063941.2052848-1-thomas@monjalon.net> (raw)

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


                 reply	other threads:[~2023-06-29  6:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230629063941.2052848-1-thomas@monjalon.net \
    --to=thomas@monjalon.net \
    --cc=bthomas@linuxfoundation.org \
    --cc=web@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).