Home » Portfolios » Advanced Visitor Tracking Plugin for Marketing Attribution
Category: , , , , , , , , , ,

🛠️ Phase 1: Core Visitor Tracking Plugin

The initial phase involved building a plugin that could:

  • Track each visitor session with:
    • First visit timestamp
    • IP address
    • First URL visited (including query strings)
    • Device and browser details
    • Source, medium, and traffic type
    • Device type (Desktop/Mobile)
    • Page view count during the session

Result:
The plugin was successfully developed and integrated into multiple sites. It stores data in a structured MySQL table, delivering accurate and actionable insights into traffic sources.

📈 Phase 2: Plugin Enhancements and Analytics Dashboard

Upon successful implementation, the client expanded the scope with advanced features for marketing intelligence.

✅ Key Enhancements:

  1. Ad Source Detection
    • Automated tagging of Microsoft Ads (msclkid) and Google Ads (gclid) traffic.
  2. Plugin Rebranding
    • Renamed to “Visitor Insights” for internal deployment and broader marketing use.
  3. Session Data Enrichment
    • Additional data captured:
      • Last page visited
      • Time of last activity in the session
      • Country derived from IP (via MaxMind GeoLite2)
  4. Event Tracking System
    • A new table visitor_events was introduced to log:
      • Campaign launches
      • Advertising channel starts/ends
      • SEO rollouts
  5. Full admin interface provided for CRUD operations.
  6. Events are visualized alongside session trends to correlate performance.
  7. Form Submission Logging
    • Integrated with Contact Form 7 to track form submissions per session and page.
  8. Graphing & Analytics Dashboard
    • Built-in visualization features with:
      • Daily trends
      • Filters: date range, device type, and region
      • Source-specific breakdown: Organic, Ads, Referrals, Direct, etc.
    • Graphing powered by Chart.js.
    • Events are displayed as overlay points for contextual correlation.

Outcome:
The plugin matured into a powerful analytics solution that supports precise marketing attribution and continuous performance monitoring. It is now reliably operating across tens of WordPress sites under the client’s management.

💡 Technologies & Tools Used

  • Composer-based autoloading architecture
  • MaxMind GeoLite2 for IP-based location
  • JavaScript modules with clean admin-side UI scripts
  • Chart.js for visual trend analysis
  • Custom MySQL schema and queries
  • WordPress Plugin APIs
  • Contact Form 7 Integration

🔚 Conclusion

This project demonstrates Digitobit’s strength in delivering scalable, marketing-oriented analytics tools tailored for real business environments. By combining performance tracking, session analysis, and campaign visibilit

Have Similar Requirements

Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience, revealing hidden wonders.