Analytics Script Configs
Contents
Engagement Analytics
File: src/engagementAnalytics.js
Scrolls your profile and analyzes engagement metrics across your recent posts.
What it reports
- Total likes, retweets, replies, views
- Average engagement rate
- Top 5 posts by likes
- Top 5 posts by total engagement
- Best posting hour and day
How to use
- Navigate to
x.com/YOUR_USERNAME - Open DevTools (F12) → Console
- Paste the script → Enter
- Wait for it to scroll and analyze
Output
Exports a full JSON report with per-post data including engagement rates, best times, and rankings.
Best Time to Post
File: src/bestTimeToPost.js
Analyzes your posting history to determine when your audience is most engaged.
What it reports
- Best days of the week (ranked by average engagement)
- Best hours of the day (ranked by average engagement)
- Best day+hour combinations
- Visual bar charts in console
- Specific recommendation: "Post on [Day] around [Hour]"
How to use
- Navigate to
x.com/YOUR_USERNAME - Open DevTools (F12) → Console
- Paste the script → Enter
- Results export as JSON
Hashtag Analytics
File: src/hashtagAnalytics.js
Analyze the performance of any hashtag: top posts, top contributors, hourly distribution.
How to use
- Search a hashtag:
x.com/search?q=%23yourhashtag - Open DevTools (F12) → Console
- Paste the script → Enter
What it reports
- Total engagement metrics across all posts
- Unique users posting the hashtag
- Top 5 posts by engagement
- Top 10 contributors
- Peak posting hours
Competitor Analysis
File: src/competitorAnalysis.js
Compare engagement metrics between multiple X accounts.
Configuration
const CONFIG = {
accounts: ['elonmusk', 'nichxbt', 'openai'],
postsToAnalyze: 20,
};
What it reports
- Follower/following counts and ratios
- Average likes and engagement per post
- Engagement rate percentage
- Rankings sorted by engagement
Each account takes ~15-30 seconds to analyze as the script navigates between profile pages.
Audit Followers
File: src/auditFollowers.js
Scan your followers list and categorize accounts as legitimate, suspicious, or likely-fake.
Detection heuristics
- Default/missing avatar → suspicious
- No bio → suspicious
- High digit-to-letter ratio in username → likely bot
- Template-looking display names → suspicious
Categories
| Category | Score | Meaning |
|---|---|---|
| Legitimate | 0-1 | Normal account |
| Suspicious | 2 | Some red flags |
| Likely Fake | 3+ | Multiple red flags |
How to use
- Navigate to
x.com/YOUR_USERNAME/followers - Open DevTools (F12) → Console
- Paste the script → Enter
- Report exports as JSON
⚡ Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation