Skip to content

[WV-1102] Update Copy link dataLayer on Share Ballot [TEAM_REVIEW] - #4928

Merged
DaleMcGrew merged 1 commit into
wevote:developfrom
Anvesh-ch:WV-1102-copy-link-datalayer
Sep 23, 2026
Merged

DaleMcGrew merged 1 commit into
wevote:developfrom
Anvesh-ch:WV-1102-copy-link-datalayer

Conversation

@Anvesh-ch

@Anvesh-ch Anvesh-ch commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

WV-1102: Update Copy link dataLayer on Share Ballot (shareDestination, howMuchToShare, urlShortcut, electionDetails)

What github.com/wevote/WebApp/issues does this fix?

WV-1102: Add dataLayer for "Copy link" on Share Ballot

Changes included this pull request?

Updated the ShareModalCopyLinkClick dataLayer in copyLink() (ShareModalOption.jsx) to match the Solution Design:

  • shareDestination: copyLink instead of the button label
  • howMuchToShare: ballotOnly / ballotWithChoices for the radio choice
  • urlShared: full destination URL; new urlShortcut holds the copied short link
  • electionDetails: added when available

Event name and buttonId unchanged. Tested locally with both radio options.

…, howMuchToShare, urlShortcut, electionDetails)
Copilot AI lite review requested due to automatic review settings September 22, 2026 22:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Updates Share Ballot copy-link analytics with standardized metadata, URL fields, and election details.

Changes:

  • Normalizes sharing destination and choice values.
  • Separates full and shortcut URLs.
  • Includes election details when available.
File Summary
src/​js/​components/​Share/​ShareModalOption.jsx Updates the copy-link dataLayer payload.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DaleMcGrew
DaleMcGrew merged commit 2668f6a into wevote:develop Sep 23, 2026
6 checks passed
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.

3 participants