Skip to content

Refactor/ctas and utm tracking#227

Merged
LeonardoVieira1630 merged 4 commits intodevfrom
refactor/CTAs_and_utm_tracking
Mar 5, 2026
Merged

Refactor/ctas and utm tracking#227
LeonardoVieira1630 merged 4 commits intodevfrom
refactor/CTAs_and_utm_tracking

Conversation

@LeonardoVieira1630
Copy link
Member

Summary

  • Refactored CTA buttons to use dynamic URLs pointing to specific AntiCapture pages (proposals, delegates, voting power) instead of the generic homepage
  • Added UTM tracking parameters (utm_source, utm_medium, utm_campaign) to all notification button URLs for engagement tracking across Slack and Telegram
  • Passed triggerType metadata through each trigger handler so consumers can build UTM params per notification type
  • Extended buildButtons to accept daoId, address, and proposalId for constructing context-aware URLs

Changes

  • packages/messages/src/triggers/buttons.ts — Replaced static CTA URLs with dynamic URL builders per trigger type (e.g., link to specific proposal, delegate page)
  • packages/messages/src/formatters/utm.ts — New utility to append UTM query params to URLs
  • apps/consumers/src/services/bot/slack-bot.service.ts — Applies UTM params to button URLs before sending Slack messages
  • apps/consumers/src/services/bot/telegram-bot.service.ts — Applies UTM params to button URLs before sending Telegram messages
  • apps/dispatcher/src/services/triggers/* — Updated all trigger handlers to pass daoId, address, proposalId, and triggerType metadata

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-editor Ready Ready Preview, Comment Mar 4, 2026 9:07pm
notification-system-dashboard Ready Ready Preview, Comment Mar 4, 2026 9:07pm

Request Review

@LeonardoVieira1630 LeonardoVieira1630 added the enhancement New feature or request label Mar 4, 2026
@LeonardoVieira1630 LeonardoVieira1630 changed the base branch from main to dev March 4, 2026 21:06
@LeonardoVieira1630 LeonardoVieira1630 changed the title Refactor/ct as and utm tracking Refactor/ctas and utm tracking Mar 4, 2026
Copy link

@PedroBinotto PedroBinotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@LeonardoVieira1630 LeonardoVieira1630 merged commit 141ab12 into dev Mar 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants