Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalahDin Ahmed <salah2112004@gmail.com>2022-04-01 21:06:38 +0300
committerGitHub <noreply@github.com>2022-04-01 21:06:38 +0300
commitf6440e69d56379b0f6ba5d7e9046ab1ee967f735 (patch)
tree76108faeb192e5f86549e81e0268be97726e2c67
parenta50f947384081797aa6a08301185c4058c77b355 (diff)
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 <hossainemruz@gmail.com>
-rw-r--r--layouts/partials/analytics.html5
1 files changed, 4 insertions, 1 deletions
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");