Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GA events to storyblok buttons #891

Closed
4 tasks
eleanorreem opened this issue May 6, 2024 · 3 comments
Closed
4 tasks

Add GA events to storyblok buttons #891

eleanorreem opened this issue May 6, 2024 · 3 comments
Assignees
Labels
complexity: beginner Time needed to do this ticket is less than 1 day. maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending.

Comments

@eleanorreem
Copy link
Contributor

Overview

We want to send events every time someone clicks a button so we know how our buttons are used. We have events on most buttons but not those dynamically created by storyblok. See bloom-frontend/components/storyblok/StoryblokButton.tsx.

Action Items

  • Add an onclick event that tracks the button press.
  • The event should be STORYBLOK_BUTTON_[TITLE]_CLICKED. Please dynamically replace the title with the button content.
  • Please seebloom-frontend/components/layout/LanguageMenu.tsx to see how Google analytics events are added to buttons
  • To ensure it is working, installing an extension like Google Analytics Debugger in Chrome is very helpful.
@eleanorreem eleanorreem added complexity: beginner Time needed to do this ticket is less than 1 day. maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending. labels May 6, 2024
@SangilYun
Copy link
Contributor

SangilYun commented May 14, 2024

@eleanorreem Hi! I'm interested in working on this issue. Would it be possible to be assigned to it?

Copy link
Contributor

Thank you for your interest in contributing to Chayn! Please carefully read the CONTRIBUTING.md file and the README.md file for guidance. Let us know if you have any questions. Good luck!

@eleanorreem
Copy link
Contributor Author

@SangilYun Thank you for your interest in contributing to Chayn!
I've assigned you this issue. Please read the Contributing Guidelines and let us know if you have any questions. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: beginner Time needed to do this ticket is less than 1 day. maintenance Maintenance / chore work state: approved Ready to go. Not blocked or pending.
Projects
Development

No branches or pull requests

3 participants