Skip to content

Commit 8d7418f

Browse files
committed
Track blog author
1 parent 1621467 commit 8d7418f

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ group :jekyll_plugins do
1111
gem "jekyll-postcss"
1212
gem "jekyll-purgecss"
1313
end
14+
15+
gem "webrick", "~> 1.7"

Gemfile.lock

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ GEM
8181
rb-inotify (~> 0.9, >= 0.9.7)
8282
uglifier (4.2.0)
8383
execjs (>= 0.3.0, < 3)
84+
webrick (1.7.0)
8485

8586
PLATFORMS
8687
ruby
@@ -94,6 +95,7 @@ DEPENDENCIES
9495
jekyll-seo-tag!
9596
jekyll-sitemap (~> 1.4)
9697
kramdown-parser-gfm
98+
webrick (~> 1.7)
9799

98100
BUNDLED WITH
99-
2.3.5
101+
2.3.11

_includes/head.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
<noscript><link rel="stylesheet" href="{{ "/assets/css/tooltip.css" | relative_url }}?v={{ site.time | date:'%s' }};"></noscript>
1212

1313
<script> if (document.cookie.includes('logged_in=true') && window.location.href == 'https://plausible.io/') window.location.pathname = '/sites'</script>
14-
<script defer src="https://plausible.io/test/js/script.beacon.js" data-api="https://plausible.io/test/api/event"></script>
15-
<script defer src="https://plausible.io/js/script.js"></script>
14+
<script
15+
defer
16+
{% if page.author %} event-author="{{ page.author }}" {% endif %}
17+
src="https://plausible.io/js/script.dimensions.js"
18+
></script>
19+
1620

1721
{%- feed_meta -%}
1822
</head>

0 commit comments

Comments
 (0)