Skip to content

feat(statistics): parse and display WooCommerce UTM tags#24

Merged
PyDevDeep merged 1 commit into
mainfrom
feat/woo-utm-stats
Jun 20, 2026
Merged

feat(statistics): parse and display WooCommerce UTM tags#24
PyDevDeep merged 1 commit into
mainfrom
feat/woo-utm-stats

Conversation

@PyDevDeep

Copy link
Copy Markdown
Owner

Goal

Adds parsing and display of WooCommerce attribution metadata (UTM source, campaign, medium, referrer) in the daily Telegram bot statistics to better understand lead traffic.

Changes

  • Updated app/services/woo_service.py to extract _wc_order_attribution_* keys and format them with localized prefixes.
  • Updated app/services/statistics_service.py to sort the collected tags by frequency in descending order for the Telegram report.

How to Test

  1. Wait for the daily statistics report or trigger it manually (gather_and_send_daily_report_job).
  2. Observe the new tags breakdown at the bottom of the report, ensuring the traffic sources are properly parsed and sorted.

Added extraction of _wc_order_attribution_* keys from WooCommerce order metadata. The tags are now sorted by frequency in the daily statistics report to better identify popular traffic sources.
@PyDevDeep PyDevDeep merged commit 3a8f4c6 into main Jun 20, 2026
5 checks passed
@PyDevDeep PyDevDeep deleted the feat/woo-utm-stats branch June 20, 2026 05:50
@PyDevDeep PyDevDeep restored the feat/woo-utm-stats branch June 20, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant