Skip to content

Conversation

@connorwinston
Copy link
Member

This pull request adds event tracking to the Marketplace, enabling more granular analytics for user interactions such as browsing, editing instance url, and installing. It also introduces hashed instance URL tracking for privacy.

Marketplace and Templates UI event tracking:

  • Added v-capture analytics tracking for clicks on extension, integration, and template cards in SearchDirectory.vue, capturing relevant IDs and names for each entity. [1] [2] [3]
  • Added v-capture tracking for template action button clicks in TemplatesActions.vue, including button details and template metadata.
  • Added tracking for external link clicks (npm, GitHub repo, and bug report) in MarketplaceExtensionActions.vue, capturing extension metadata for each event. [1] [2]

Hashed instance URL tracking and analytics:

  • Introduced hashing of instance URLs using the ohash library to anonymize and track instance usage in extension install flows, with related analytics events for opening/editing/saving instance URLs and launching installs. [1] [2] [3] [4] [5]
  • Integrated $posthog event capture for all major extension installation actions, including modal opens, edits, saves, and launches, with hashed instance URLs and extension details. [1] [2] [3]

Dependency updates:

  • Added ohash to package.json for hashing functionality and updated related lockfile entries. [1] [2] [3]
  • Updated several dependencies and transitive dependencies in pnpm-lock.yaml for packages such as @nuxtjs/sitemap, unstorage, acorn, eslint-scope, and others. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

@netlify
Copy link

netlify bot commented Sep 22, 2025

Deploy Preview for directus-website ready!

Name Link
🔨 Latest commit 9e9d148
🔍 Latest deploy log https://app.netlify.com/projects/directus-website/deploys/68d1863c28e072000861659c
😎 Deploy Preview https://deploy-preview-202--directus-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds comprehensive event tracking to the Marketplace interactions, enabling analytics for user behavior while maintaining privacy through hashed instance URLs.

  • Implements event tracking for card clicks across extensions, integrations, and templates
  • Adds detailed analytics for extension installation flow including modal interactions and URL editing
  • Introduces secure URL hashing using ohash library for privacy-compliant tracking

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
package.json Adds ohash dependency for URL hashing functionality
TemplatesActions.vue Implements click tracking for template action buttons
MarketplaceExtensionActions.vue Adds comprehensive tracking for extension interactions and hashed instance URL handling
SearchDirectory.vue Adds click tracking for extension, integration, and template cards
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@bryantgillespie bryantgillespie left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@bryantgillespie bryantgillespie merged commit b660bf0 into main Sep 22, 2025
6 checks passed
@bryantgillespie bryantgillespie deleted the marketplace-tracking branch September 22, 2025 19:55
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.

3 participants