Skip to content

Commit 3cdd0f6

Browse files
authored
Add webpage + add panelbear analytics (alshedivat#176)
* Add webpage to academic pages list * adding panelbear analytics
1 parent e2353bc commit 3cdd0f6

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Feel free to add your own page(s) by sending a PR.
5050
<a href="https://liamcli.com/" target="_blank">★</a>
5151
<a href="https://yoonholee.com/" target="_blank">★</a>
5252
<a href="https://zrqiao.github.io/" target="_blank">★</a>
53+
<a href="https://abstractgeek.github.io/" target="_blank">★</a>
5354
</td>
5455
</tr>
5556
<tr>

_config.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ contact_note: >
5858
You can even add a little note about which of these is the best way to reach you.
5959
6060
google_analytics: UA-XXXXXXXXX # out your google-analytics code
61+
panelbear_analytics: XXXXXXXXX # panelbear analytics site ID
6162

6263
# -----------------------------------------------------------------------------
6364
# Blog
@@ -152,12 +153,13 @@ scholar:
152153
# Optional Features
153154
# -----------------------------------------------------------------------------
154155

155-
enable_google_analytics: false
156-
enable_mansory: true
157-
enable_math: true
158-
enable_tooltips: false
159-
enable_darkmode: true
160-
show_social_icons: false
156+
enable_google_analytics: false
157+
enable_panelbear_analytics: false
158+
enable_mansory: true
159+
enable_math: true
160+
enable_tooltips: false
161+
enable_darkmode: true
162+
show_social_icons: false
161163

162164
# -----------------------------------------------------------------------------
163165
# Library versions

_includes/head.html

+9
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@
4949
gtag('config', '{{ site.google_analytics }}');
5050
</script>
5151
{% endif %}
52+
53+
{% if site.enable_panelbear_analytics %}
54+
<!-- Panelbear Analytics - We respect your privacy -->
55+
<script async src="https://cdn.panelbear.com/analytics.js?site={{site.panelbear_analytics}}"></script>
56+
<script>
57+
window.panelbear = window.panelbear || function() { (window.panelbear.q = window.panelbear.q || []).push(arguments); };
58+
panelbear('config', { site: '{{site.panelbear_analytics}}' });
59+
</script>
60+
{% endif %}

0 commit comments

Comments
 (0)