Skip to content

Add Google Tag Manager and upgrade TutorialKit to v1.6.0#2

Merged
SilentRhetoric merged 5 commits intomasterfrom
chore/bump-tutorialkit-with-analytics
Feb 4, 2026
Merged

Add Google Tag Manager and upgrade TutorialKit to v1.6.0#2
SilentRhetoric merged 5 commits intomasterfrom
chore/bump-tutorialkit-with-analytics

Conversation

@larkiny
Copy link
Collaborator

@larkiny larkiny commented Feb 4, 2026

Summary

  • Adds Google Tag Manager via TutorialKit's HeadTags component override
  • Upgrades TutorialKit packages from v0.1.2 to v1.6.0
  • Migrates uno.config.ts to use @tutorialkit/theme's defineConfig (replaces removed unoCSSConfig export)
  • Swaps deprecated @tutorialkit/components-react for @tutorialkit/react
  • Bumps astro from 4.12.3 to 4.16.19 (required by TutorialKit v1.6.0)
  • Bumps zod to ^3.25 (required by zod-to-json-schema in newer Astro)
  • Adds @tutorialkit/theme as a direct dev dependency (required for pnpm strict isolation)
  • Replaces pnpm-lock.yaml with package-lock.json in the embedded app template to fix StackBlitz install conflicts
  • Fixes preview panel background not extending on scroll (h-screenmin-h-screen)

TutorialKit changelog (v0.1.2 → v1.6.0)

Breaking Changes

  • v0.2.0: @tutorialkit/components-react renamed to @tutorialkit/react
  • v0.2.0: Simplified UnoCSS integration (unoCSSConfig removed, replaced by @tutorialkit/theme defineConfig)

Key New Features

Version Feature
v1.1.0 HeadTags override component
v1.0.0 File addition via the file tree UI, glob patterns in editor.fileTree.allowEdits, WebContainer-to-editor file sync
v1.3.0 Download lesson as ZIP, lessons without parts/chapters (simpler content structure)
v1.4.0 Default canonical URL generation for SEO
v1.5.0 Custom Expressive Code plugins, file path preservation for imported code blocks
v1.6.0 expressiveCodeThemes configuration option
v0.1.3 "Open in StackBlitz" button
v0.2.2 Preview reload button

Notable Bug Fixes

  • Windows path handling for subfolders (v0.1.4)
  • Fixed ReferenceError: __WC_CONFIG__ is not defined in dev mode (v0.2.1)
  • Preview container visibility when disabled (v1.2.2)
  • meta.title used as default <title> tag (v1.5.2)
  • URL support in meta.image field (v1.3.1)

Test plan

  • Verify GTM loads correctly in browser dev tools (Network tab)
  • Confirm dataLayer is initialized on page load (console: window.dataLayer)
  • Verify site builds and renders correctly after TutorialKit upgrade
  • Verify custom language icons still render in the editor file tree
  • Verify StackBlitz embedded terminal no longer shows npm/pnpm conflict errors
  • Verify preview panel background extends when scrolling

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 4, 2026

Deploying algokit-tutorials with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2fb0284
Status: ✅  Deploy successful!
Preview URL: https://c77bc2e0.algokit-tutorials.pages.dev
Branch Preview URL: https://chore-bump-tutorialkit-with.algokit-tutorials.pages.dev

View logs

Fixes conflict where StackBlitz auto-detects the pnpm lockfile and
runs pnpm install before the tutorial's configured npm install command.
Change h-screen to min-h-screen so the background grows with content.
Copy link
Collaborator

@SilentRhetoric SilentRhetoric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@SilentRhetoric SilentRhetoric merged commit 443e3fe into master Feb 4, 2026
1 check passed
@SilentRhetoric SilentRhetoric deleted the chore/bump-tutorialkit-with-analytics branch February 4, 2026 20:14
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.

2 participants