Explorar o código

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>
SalahDin Ahmed %!s(int64=3) %!d(string=hai) anos
pai
achega
f6440e69d5
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      layouts/partials/analytics.html

+ 4 - 1
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");