Posts

Showing posts with the label user behavior

Tracking Post Series Engagement in Jekyll Without a Backend

Why Track Post Series Navigation? After building contextual navigation between posts in a series, the next step is understanding how readers engage with that flow: Are they completing the entire series? Do they drop off at a particular part? Which parts are revisited? Traditional analytics tools like Google Analytics may feel like overkill or may not offer fine-grained, privacy-friendly insights. Let's explore a lightweight, backend-free approach tailored for Jekyll sites. Step 1: Use localStorage to Track Progress The simplest method is to record which parts a user has read using localStorage . Here’s a JavaScript snippet you can include in your layout: <script> (function() { const key = 'jekyll_series_progress'; const series = "{{ page.series.name | escape }}"; const part = "{{ page.series.part }}"; if (series && part) { let progress = JSON.parse(localStorage.getItem(key) || '{}'); if (!progr...

Archives / All Content


© HypeLeakDance . All rights reserved.