agentsclimarketplace

Linktree core workflow b

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/linktree-pack/skills/linktree-core-workflow-b

425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill linktree-core-workflow-b

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

'Execute Linktree secondary workflow: Analytics & Insights.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.5 KB, 773 tokens by cl100k_base, as published. Nobody here has run it

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

IssueCauseFix
401 UnauthorizedExpired or invalid bearer tokenRe-authenticate via OAuth flow
403 Analytics unavailableFree-tier profile without analyticsUpgrade to Pro plan for analytics access
404 Profile not foundWrong profile_idVerify with client.profiles.list()
422 Invalid periodUnsupported date range formatUse last_7_days, last_30_days, or ISO dates
Empty daily arrayProfile has zero traffic in rangeWiden 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.