This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
The following commit(s) were added to refs/heads/main by this push:
new 0b5c27a9a enh(analytics): add scarf.sh pixel (#321)
0b5c27a9a is described below
commit 0b5c27a9a34c217094b0a0edb09d36503e4baa85
Author: Lenny Primak <[email protected]>
AuthorDate: Tue Sep 8 12:35:50 2026 -0500
enh(analytics): add scarf.sh pixel (#321)
---
jbake.properties | 2 ++
src/site/templates/footer.ftl | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/jbake.properties b/jbake.properties
index 64c836471..677682b75 100644
--- a/jbake.properties
+++ b/jbake.properties
@@ -15,6 +15,8 @@ archive.file=news.html
index.paginate=true
index.posts_per_page=5
+site.scarf.trackingid=8bc6f7e7-015b-4c3f-bc99-12802081d969
+
template.redirect.file=redirect.ftl
template.download.file=download.ftl
template.lend_a_hand.file=lend_a_hand.ftl
diff --git a/src/site/templates/footer.ftl b/src/site/templates/footer.ftl
index 80c35243c..23eccd16a 100644
--- a/src/site/templates/footer.ftl
+++ b/src/site/templates/footer.ftl
@@ -35,7 +35,12 @@
</div>
- <!-- Le javascript
+ <#if config.site_scarf_trackingid?has_content>
+ <img referrerpolicy="no-referrer-when-downgrade"
+
src="https://static.scarf.sh/a.png?x-pxid=${config.site_scarf_trackingid}" />
+ </#if>
+
+<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<#if
(content.rootpath)??>${content.rootpath}<#else></#if>js/bootstrap.min.js"></script>