Skip to content

Conversation

@hariomop12
Copy link

Summary

This PR implements a feature to view and export campaign click results as requested in #2501.

Changes Introduced

  • Created SQL campaign_results_view to join click data with subscriber and link details.
  • Added API endpoint /api/campaigns/results/csv to export results as CSV.
  • Registered Go query and model (CampaignResult) to support the above view.
  • Added UI export button to trigger the endpoint.

Sample CSV Format

Campaign Name Campaign ID Email Link ID Link URL Count

Testing

  • Created sample campaign, subscriber, and link via SQL insert.
  • Confirmed click tracking works.
  • Verified CSV download with curl:
    curl -OJ http://localhost:9000/api/campaigns/results/csv

@hariomop12
Copy link
Author

hariomop12 commented Jul 13, 2025

Hi sir 👋 Just wanted to confirm that I’ve tested the feature locally and ensured no existing behavior is broken.
Let me know if you need any changes — happy to update the PR. Thanks!

@knadh
Copy link
Owner

knadh commented Aug 4, 2025

Hi @hariomop12. Could you please share a screenshot of the UI changes?

@kapil-collabtic
Copy link

@hariomop12 can you share please eagerly waiting for this update.

@mevinbabuc
Copy link

@hariomop12 Would love to see this happen

@github-actions
Copy link
Contributor

This PR has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

@github-actions github-actions bot added the stale label Nov 22, 2025
@github-actions github-actions bot closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants