Skip to content
Skillv1.0.0

linktree-core-workflow-b

Execute Linktree secondary workflow: Analytics & Insights. Trigger: "linktree analytics & insights", "secondary linktree workflow".

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (plugins/saas-packs/linktree-pack/skills/linktree-core-workflow-b/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill linktree-core-workflow-b. Copyright stays with the author (MIT).

Linktree — Analytics & Reporting

Overview

Pull click tracking data, measure conversion rates, and extract audience insights from your Linktree profile. Use this workflow when you need to understand which links drive traffic, where your audience comes from, and how engagement trends over time. This is the secondary workflow — for link creation and profile management, see linktree-core-workflow-a.

Instructions

Step 1: Fetch Overall Profile Analytics

const analytics = await client.analytics.get({
  profile_id: profile.id,
  period: 'last_30_days',
  granularity: 'daily',
});
console.log(`Total views: ${analytics.views}`);
console.log(`Total clicks: ${analytics.clicks}`);
console.log(`CTR: ${(analytics.clicks / analytics.views * 100).toFixed(1)}%`);
analytics.daily.forEach(d =>
  console.log(`  ${d.date}: ${d.views} views, ${d.clicks} clicks`)
);

Step 2: Rank Per-Link Performance

const linkStats = await client.analytics.byLink({
  profile_id: profile.id,
  period: 'last_7_days',
  sort: 'clicks_desc',
});
linkStats.forEach((s, i) =>
  console.log(`#${i + 1} ${s.title}: ${s.clicks} clicks (${s.unique_visitors} unique, CTR ${s.ctr}%)`)
);

Step 3: Pull Audience Demographics

const audience = await client.analytics.audience({
  profile_id: profile.id,
  period: 'last_30_days',
});
console.log('Top locations:', audience.locations.slice(0, 5).map(l => `${l.country}: ${l.pct}%`));
console.log('Top referrers:', audience.referrers.slice(0, 5).map(r => `${r.source}: ${r.visits}`));
console.log('Devices:', `Mobile ${audience.devices.mobile}% / Desktop ${audience.devices.desktop}%`);

Step 4: Generate a Conversion Report

const report = await client.analytics.report({
  profile_id: profile.id,
  period: 'last_30_days',
  metrics: ['views', 'clicks', 'ctr', 'unique_visitors', 'top_referrers'],
  format: 'json',
});
console.log(`Report period: ${report.start_date} to ${report.end_date}`);
console.log(`Highest CTR link: ${report.top_link.title} (${report.top_link.ctr}%)`);
console.log(`Total unique visitors: ${report.unique_visitors}`);

Error Handling

Issue Cause Fix
401 Unauthorized Expired or invalid bearer token Re-authenticate via OAuth flow
403 Analytics unavailable Free-tier profile without analytics Upgrade to Pro plan for analytics access
404 Profile not found Wrong profile_id Verify with client.profiles.list()
422 Invalid period Unsupported date range format Use last_7_days, last_30_days, or ISO dates
Empty daily array Profile has zero traffic in range Widen the date range or verify profile is published

Output

A successful workflow produces daily view/click time series, a ranked list of link performance with CTR, audience demographics broken down by location, referrer, and device type, and a summary conversion report identifying top-performing links.

Resources

Next Steps

See linktree-sdk-patterns for OAuth setup and rate-limit handling.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-linktree-core-80b70e/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-linktree-core-80b70e.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-linktree-core-80b70e",
  "kind": "skill",
  "name": "linktree-core-workflow-b",
  "description": "Execute Linktree secondary workflow: Analytics & Insights. Trigger: \"linktree analytics & insights\", \"secondary linktree workflow\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "saas",
      "linktree",
      "social",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Execute Linktree secondary workflow: Analytics & Insights. Trigger: \"linktree analytics & insights\", \"secondary linktree workflow\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "plugins/saas-packs/linktree-pack/skills/linktree-core-workflow-b/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/plugins/saas-packs/linktree-pack/skills/linktree-core-workflow-b/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/plugins/saas-packs/linktree-pack/skills/linktree-core-workflow-b/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(npm:*),",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Linktree — Analytics & Reporting\n\n## Overview\n\nPull click tracking data, measure conversion rates, and extract audience insights from\nyour Linktree profile. Use this workflow when you need to understand which links drive\ntraffic, where your audience comes from, and how engagement trends over time. This is\nthe secondary workflow — for link creation and profile management, see\n`linktree-core-workflow-a`.\n\n## Instructions\n\n### Step 1: Fetch Overall Profile Analytics\n\n```typescript\nconst analytics = await client.analytics.get({\n  profile_id: profile.id,\n  period: 'last_30_days',\n  granularity: '",
  "cost": {
    "context_tokens": 790
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-linktree-core-80b70e/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.