Skip to content

Add Tianji analytics support (v2.1.0) - #20

Merged
impuls42 merged 1 commit into
mainfrom
tianji-analytics
Sep 29, 2026
Merged

impuls42 merged 1 commit into
mainfrom
tianji-analytics

Conversation

@impuls42

Copy link
Copy Markdown
Member

Adds optional Tianji analytics next to GoatCounter and Google Analytics.

tianji:
  url: "https://stats.example.com"
  website_id: "your-website-id"

When both keys are set, default.html loads tracker.js from that instance. The ten tracked elements in cv.html (print button, contact and social links) also get data-tianji-event, using the same names as their data-goatcounter-click hooks, so clicks come through as Tianji events.

GoatCounter support is untouched, and the two can run together. Version bump to 2.1.0 with a CHANGELOG entry and the theme's own Gemfile.lock updated to match.

A tianji config block (url, website_id) loads tracker.js from a Tianji
instance. The print button and contact/social links also get
data-tianji-event, named like their GoatCounter hooks. GoatCounter
support stays as it is.
@impuls42
impuls42 merged commit fbc5557 into main Sep 29, 2026
1 check passed
@impuls42
impuls42 deleted the tianji-analytics branch September 29, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant