The Ultimate Open-Source WhatsApp Analytics Engine.
To build the fastest, most robust analytics and tracking tool for the Frappe/ERPNext ecosystem. Philosophy: "Capture Everything, Query Instantly."
- Core Engine:
frappe_whatsapp(Handles Messaging & Webhooks) - Analytics Layer:
waplytics(Link Shortener, Enhanced Tracking, Dashboards) - Database: MariaDB (Standard ERPNext DB)
waplytics: Custom Frappe App containing:- Link Tracker:
Wa Link Tracker&Wa Link Click - Dashboard:
Waplytics Dashboard - Hooks: Automatic URL shortening interceptor.
- Link Tracker:
See Roadmap for detailed implementation plans.
Ensure you have a Frappe Bench with frappe_whatsapp installed.
- Get the App:
bench get-app https://github.com/asmitonweb/waplytics
- Install on Site:
bench --site [your-site.com] install-app waplytics
- Migrate (Important):
bench --site [your-site.com] migrate
Waplytics automatically shortens URLs in your WhatsApp messages to track clicks and assign UTM parameters.
How it works:
- Compose a message in
frappe_whatsapp(or any app that writes toWa Message Log). - Include a standard link, e.g.,
https://myshop.com/product. - Waplytics intercepts the save:
- Generates a short link:
https://yoursite.com/l/AbCd12. - Appends default UTMs:
?utm_source=whatsapp&utm_medium=waplytics. - Replaces the long link in the message body.
- Generates a short link:
- The user receives the short link. When they click, we log the IP and User Agent before redirecting them.
Manual creation: You can also manually create shortened links:
- Go to Wa Link Tracker list.
- Click New.
- Enter the Original URL.
- Save.
- Copy the Short Code or constructed URL.
View your performance at a glance.
- Search for "Waplytics Dashboard" in the awesome bar.
- Charts available:
- Message Status: Live breakdown of Sent vs. Delivered vs. Read vs. Failed.
- Engagement Funnel: Visualizes the drop-off from Reading to Clicking (CTR).
In Phase 2, we will link these clicks directly to Sales Orders to show you the exact Revenue per Message.
No complex configuration needed.
- UTM Defaults: Configure default
utm_sourceandutm_mediuminWa Link Tracker(currently hardcoded towhatsapp/waplyticsbut customizable in code).
- Redirect 404? Ensure your site's Nginx/Supervisor is running and
bench migratewas successful. - No Stats? Ensure
frappe_whatsappwebhooks are correctly receiving status updates from Meta.