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

feat: implemented tracking on every share button #1328

Merged

Conversation

ThePromiseBenard
Copy link
Contributor

@ThePromiseBenard ThePromiseBenard commented Jul 3, 2023

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

Added analytics tracking for contributor highlight card and insight header

  • Added usePostHog hook from posthog-js/react library to track user actions
  • Implemented tracking for sharing highlights on LinkedIn, Twitter, and copying highlight link to clipboard
  • Implemented tracking for copying insight link to clipboard

This PR adds analytics tracking to the contributor highlight card and insight header components, allowing us to gather data on user interactions and engagement.

Related Tickets & Documents

Fixes #1324

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Jul 3, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit 51b040f
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/64a2ce1d9b3bda0008ccbb05
😎 Deploy Preview https://deploy-preview-1328--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jul 3, 2023

βœ… Deploy Preview for oss-insights ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 51b040f
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/64a2ce1de9d7370008097f87
😎 Deploy Preview https://deploy-preview-1328--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@bdougie bdougie 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. Thanks @ThePromiseBenard

@brandonroberts brandonroberts merged commit 4c20717 into open-sauced:beta Jul 3, 2023
17 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 3, 2023
## [1.55.0-beta.6](v1.55.0-beta.5...v1.55.0-beta.6) (2023-07-03)

### πŸ• Features

* implemented  tracking on every share button ([#1328](#1328)) ([4c20717](4c20717))
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

πŸŽ‰ This PR is included in version 1.55.0-beta.6 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Jul 6, 2023
## [1.55.0](v1.54.0...v1.55.0) (2023-07-06)

### πŸ› Bug Fixes

* adjust contributor distribution chart yscale max height ([#1329](#1329)) ([0c6b176](0c6b176))
* hide unnecessary scrollbar in profilepage ([#1327](#1327)) ([770f999](770f999))
* update author and license ([9a2c7de](9a2c7de))
* update DevCard component first contribution date format ([#1322](#1322)) ([951945c](951945c))
* update DevCard Contribution term to Repo ([#1321](#1321)) ([bc0d0cf](bc0d0cf))

### πŸ• Features

* add  `UserCard` to feeds page ([#1326](#1326)) ([b225eb3](b225eb3))
* add `NewsletterForm` component to design system ([#1311](#1311)) ([52573fb](52573fb))
* Hookup devcard page to real data ([#1302](#1302)) ([6c58d74](6c58d74))
* implemented  tracking on every share button ([#1328](#1328)) ([4c20717](4c20717))
* use repository recommendations from the API ([#1323](#1323)) ([aa8c33d](aa8c33d))
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

πŸŽ‰ This PR is included in version 1.55.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.55.0-beta.6](open-sauced/app@v1.55.0-beta.5...v1.55.0-beta.6) (2023-07-03)

### πŸ• Features

* implemented  tracking on every share button ([#1328](open-sauced/app#1328)) ([4c20717](open-sauced/app@4c20717))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.55.0](open-sauced/app@v1.54.0...v1.55.0) (2023-07-06)

### πŸ› Bug Fixes

* adjust contributor distribution chart yscale max height ([#1329](open-sauced/app#1329)) ([0c6b176](open-sauced/app@0c6b176))
* hide unnecessary scrollbar in profilepage ([#1327](open-sauced/app#1327)) ([770f999](open-sauced/app@770f999))
* update author and license ([9a2c7de](open-sauced/app@9a2c7de))
* update DevCard component first contribution date format ([#1322](open-sauced/app#1322)) ([951945c](open-sauced/app@951945c))
* update DevCard Contribution term to Repo ([#1321](open-sauced/app#1321)) ([bc0d0cf](open-sauced/app@bc0d0cf))

### πŸ• Features

* add  `UserCard` to feeds page ([#1326](open-sauced/app#1326)) ([b225eb3](open-sauced/app@b225eb3))
* add `NewsletterForm` component to design system ([#1311](open-sauced/app#1311)) ([52573fb](open-sauced/app@52573fb))
* Hookup devcard page to real data ([#1302](open-sauced/app#1302)) ([6c58d74](open-sauced/app@6c58d74))
* implemented  tracking on every share button ([#1328](open-sauced/app#1328)) ([4c20717](open-sauced/app@4c20717))
* use repository recommendations from the API ([#1323](open-sauced/app#1323)) ([aa8c33d](open-sauced/app@aa8c33d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add posthog tracking on every share button
3 participants