From 8824e2de1ec50f2e5cbbed49f126c9e2d0fca229 Mon Sep 17 00:00:00 2001 From: zoreet Date: Wed, 1 May 2024 01:24:05 +0200 Subject: [PATCH] 1.4.0 --- CHANGELOG.md | 3 +++ src/main.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d99ef1..3d0ef8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.4.0 +feat: track how many times the plugin is loaded at every version; it's important to see that people actually stick with using it, and that they adopt new versions, so I can decide how much time to invest in this project. I'm using bit.ly for this and all I care about is page views + ## 1.3.0 feat: Streaks - track and display the number of consecutive days a habit has been completed diff --git a/src/main.ts b/src/main.ts index 2a962dc..bd7ac30 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,6 +9,9 @@ export default class HabitTracker21 extends Plugin { this.registerMarkdownCodeBlockProcessor( 'habittracker', async (src, el, ctx) => { + const trackingPixel = document.createElement('img'); + trackingPixel.setAttribute('src', 'https://bit.ly/habitttracker21-140'); + el.parentElement.appendChild(trackingPixel); new HabitTracker(src, el, ctx, this.app) }, )