google-analytics
Integrate with Google Analytics for web metrics. Use when you need to: (1) retrieve website analytics reports, (2) track traffic and user metrics, or (3) analyze web performance data.
What this skill does
# Google Analytics
Integrate with Google Analytics for web metrics. Use when you need to: (1) retrieve website analytics reports, (2) track traffic and user metrics, or (3) analyze web performance data.
## Input
Provide input as JSON:
```json
{
"property_id": "Google Analytics property ID (e.g., properties/123456789)",
"date_range": "Date range for the report (e.g., last 7 days, last 30 days, last 90 days)",
"metrics": "Metrics to retrieve (e.g., sessions, users, pageviews, bounce rate, conversion rate)",
"dimensions": "Dimensions to group by (e.g., date, country, device category, page path)"
}
```
## Execution (Pattern B: Text/Data)
### Step 1: Run the Skill and Get Run ID
```bash
RESULT=$(refly skill run --id skpi-mtb0qx9adafqm4d2ll3f9zqr --input '{
"property_id": "GA-XXXXXXX",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"metrics": "sessions,pageviews"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# RUN_ID is we-xxx format, use this for workflow commands
```
### Step 2: Open Workflow in Browser and Wait for Completion
```bash
open "https://refly.ai/workflow/c-o5nfiwa9rm39qmcjglnva7ye"
refly workflow status "$RUN_ID" --watch --interval 30000
```
### Step 3: Extract Text Content
```bash
# Get analytics data from toolcalls
CONTENT=$(refly workflow toolcalls "$RUN_ID" --files --latest | jq -r '.payload.nodes[].content')
echo "$CONTENT"
```
## Expected Output
- **Type**: Text content
- **Format**: JSON analytics data
- **Action**: Display analytics report to user
## Rules
Follow base skill workflow: `~/.claude/skills/refly/SKILL.md`
Related in text-data
perplexity
IncludedAI-powered search and chat with Perplexity. Use when you need to: (1) get AI responses with real-time web search, or (2) answer questions with up-to-date information.
alpha-vantage
IncludedGet financial data from Alpha Vantage. Use when you need to: (1) retrieve stock quotes and prices, (2) get forex or crypto rates, or (3) access market analytics data.
apollo
IncludedSearch sales leads with Apollo.io. Use when you need to: (1) find company and contact information, (2) enrich lead data, or (3) search for B2B prospects.
exa
IncludedPerform semantic search using Exa AI. Use when you need to: (1) find content by meaning not keywords, (2) discover similar documents, or (3) perform neural web searches.
google-maps
IncludedIntegrate with Google Maps for location services. Use when you need to: (1) geocode addresses to coordinates, (2) search for places, or (3) get directions and location data.
hunter
IncludedFind emails with Hunter.io. Use when you need to: (1) discover professional email addresses, (2) verify email deliverability, or (3) find contacts at companies.