chaynHQ/bloom-frontend

Add GA events to storyblok buttons

Closed this issue · 3 comments

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 Hi! I'm interested in working on this issue. Would it be possible to be assigned to it?

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!

@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. 🙂