mirror of
https://github.com/andrepimenta/claude-code-chat.git
synced 2026-06-15 11:01:47 +08:00
Add analytics tracking to MCP, skills, plugins, and checkout
Track modal opens, installs, removals with properties for MCP servers, skills, and plugins. Add checkout completed event and support attempted event. Include error details in install failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ const getSkillsScript = () => `
|
||||
var topSkills = (window.__topSkills || []);
|
||||
|
||||
function showSkillsModal() {
|
||||
sendStats('Skills modal opened');
|
||||
document.getElementById('skillsModal').style.display = 'flex';
|
||||
loadInstalledSkills();
|
||||
if (topSkills.length > 0) {
|
||||
@@ -266,6 +267,7 @@ const getSkillsScript = () => `
|
||||
function confirmSkillInstall(btn) {
|
||||
var source = btn.dataset.source;
|
||||
var name = btn.dataset.name;
|
||||
sendStats('Skill installed', { name: name, source: source });
|
||||
var scope = document.getElementById('skillInstallScope').value;
|
||||
|
||||
var repoUrl = 'https://github.com/' + source.replace(/^github\\//, '');
|
||||
|
||||
Reference in New Issue
Block a user