📊 Engagement Analytics
Analyze likes, retweets, replies, and views across your X/Twitter posts.
📋 What It Does
- Scrolls your profile to load recent posts
- Extracts engagement metrics from each post
- Calculates totals, averages, and rates
- Identifies top-performing posts
- Finds best posting times
- Exports full report as JSON
🌐 Browser Console Script
Steps:
- Go to
x.com/YOUR_USERNAME - Open browser console (F12 → Console tab)
- Paste
src/engagementAnalytics.js - Wait for analysis to complete
Configuration:
const CONFIG = {
maxPosts: 50, // Number of posts to analyze
scrollDelay: 1500, // Delay between scrolls
exportResults: true, // Auto-download JSON report
};
📈 Report Contents
- Overview: Total likes, retweets, replies, views, avg engagement rate
- Top 5 by Likes: Your most-liked posts
- Top 5 by Engagement: Posts with highest total interaction
- Best Posting Hour: When your audience engages most
- Best Posting Day: Which day of the week performs best
📁 Related Scripts
| Script | File | Purpose |
|---|---|---|
| Engagement Analytics | src/engagementAnalytics.js |
Full engagement analysis |
| Best Time to Post | src/bestTimeToPost.js |
Optimal posting time analysis |
| Hashtag Analytics | src/hashtagAnalytics.js |
Hashtag performance analysis |
| Competitor Analysis | src/competitorAnalysis.js |
Compare multiple accounts |
| Audit Followers | src/auditFollowers.js |
Detect fake/bot followers |
⚠️ Notes
- Only analyzes posts visible in the browser — increase
maxPostsfor deeper analysis - Engagement rate = (likes + retweets + replies) / views × 100
- JSON export includes per-post data for further analysis in spreadsheets
⚡ Ready to try Engagement Analytics?
XActions is 100% free and open-source. No API keys, no fees, no signup.
Browse All Scripts