Skip to content

feat: add Google Ads conversion tracking#38

Merged
wavekat-eason merged 1 commit intomainfrom
feat/google-ads-tracking
Apr 30, 2026
Merged

feat: add Google Ads conversion tracking#38
wavekat-eason merged 1 commit intomainfrom
feat/google-ads-tracking

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

  • Add Google Ads gtag (AW-18128547216) alongside existing GA4, sharing one loader
  • Wire book_a_call, email_signup, and mailto_click conversion events in TalkCTA
  • Conversion labels are placeholders — must be replaced after creating the actions in Google Ads

Follow-up (manual, in Google Ads UI)

  1. Tools → Conversions → New conversion action → Website
  2. Create three actions: Book a call (Primary), Email signup (Secondary), Mailto click (Secondary)
  3. Copy each conversion label and replace the REPLACE_WITH_*_LABEL placeholders in src/components/TalkCTA.astro

Test plan

  • Verify base tag loads on every page (Network tab → gtag/js?id=G-H8ZGBL04R7)
  • Confirm dataLayer contains both G-H8ZGBL04R7 and AW-18128547216 configs
  • After labels swapped: click "Book a call" → see conversion event in Google Ads → Conversions → Status
  • Same for email form submit and mailto click

🤖 Generated with Claude Code

Wire AW-18128547216 alongside the existing GA4 tag. TalkCTA fires
book_a_call, email_signup, and mailto_click events; conversion labels
are placeholders until the actions are created in Google Ads.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

@wavekat-eason wavekat-eason merged commit c3f3081 into main Apr 30, 2026
2 checks passed
@wavekat-eason wavekat-eason deleted the feat/google-ads-tracking branch April 30, 2026 00:27
wavekat-eason added a commit that referenced this pull request Apr 30, 2026
## Summary
- Swap in the three conversion labels created in Google Ads
- `book_a_call` (Book appointment), `email_signup` (Sign-up),
`mailto_click` (Contact)
- All wiring from #38 stays the same — only the placeholder strings
change

## Test plan
- [ ] After deploy, click "Book a call" on `/voice/talk/` → see entry in
Google Ads → Conversions → All conversions (may take up to 3h to
surface)
- [ ] Submit Buttondown form → entry under Sign-up
- [ ] Click `eason@wavekat.com` mailto → entry under Contact
- [ ] Confirm Smart Bidding has data after ~1 week so we can move to
Maximize Conversions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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