diff options
author | SalahDin Ahmed <salah2112004@gmail.com> | 2022-04-01 21:06:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 21:06:38 +0300 |
commit | f6440e69d56379b0f6ba5d7e9046ab1ee967f735 (patch) | |
tree | 76108faeb192e5f86549e81e0268be97726e2c67 | |
parent | a50f947384081797aa6a08301185c4058c77b355 (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.html | 5 |
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"); |