From f6440e69d56379b0f6ba5d7e9046ab1ee967f735 Mon Sep 17 00:00:00 2001 From: SalahDin Ahmed Date: Fri, 1 Apr 2022 21:06:38 +0300 Subject: [PATCH] Enable pages in counter.dev (#571) * Enable pages in counter.dev Not perfect but will work fine for a while. * Make counter.dev's `referrerPolicy` togglable * Make `referrerPolicy` take more options Co-authored-by: Emruz Hossain --- layouts/partials/analytics.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 63af0b7..74adeae 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -22,7 +22,10 @@ screen: screen.width + "x" + screen.height, user: "{{ .id }}", utcoffset: "1", - }) + }), + {{ with .referrerPolicy }} + { referrerPolicy: "{{ . }}" } + {{ end }} ); } sessionStorage.setItem("_swa", "1");