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: add share tracking #1250

Merged
merged 4 commits into from
Jun 6, 2023
Merged

feat: add share tracking #1250

merged 4 commits into from
Jun 6, 2023

Conversation

bdougie
Copy link
Member

@bdougie bdougie commented Jun 6, 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

Add PostHog tracking to ContributorProfileHeader component. The usePostHog hook is imported and used to capture the event when the user copies the profile URL to the clipboard. The captured event includes the user's username.

Generated using OpenSauced.

Related Tickets & Documents

Leverage this tutorial as a guide from the posthog documentation

https://posthog.com/tutorials/nextjs-analytics

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?

Need to update posthog live events dashboard to capture data in a shareable dashboard.

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

@netlify
Copy link

netlify bot commented Jun 6, 2023

❌ Deploy Preview for oss-insights failed.

Name Link
πŸ”¨ Latest commit e8cf439
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/647f3d5b49a5710008b8074d

@netlify
Copy link

netlify bot commented Jun 6, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit e8cf439
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/647f3d5b10eefd0008435ddf
😎 Deploy Preview https://deploy-preview-1250--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 settings.

@bdougie bdougie marked this pull request as ready for review June 6, 2023 06:54
@bdougie bdougie merged commit 5b7d331 into beta Jun 6, 2023
@bdougie bdougie deleted the custom-share-events branch June 6, 2023 16:21
github-actions bot pushed a commit that referenced this pull request Jun 6, 2023
## [1.51.0-beta.2](v1.51.0-beta.1...v1.51.0-beta.2) (2023-06-06)

### πŸ• Features

* add share tracking ([#1250](#1250)) ([5b7d331](5b7d331))

### πŸ› Bug Fixes

* update hook for Posthog ([cd4f32c](cd4f32c))
* update medium activity threshold for repositories ([#1251](#1251)) ([4730533](4730533)), closes [#1224](#1224)
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

πŸŽ‰ This PR is included in version 1.51.0-beta.2 πŸŽ‰

The release is available on GitHub release

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

github-actions bot pushed a commit that referenced this pull request Jun 6, 2023
## [1.51.0](v1.50.0...v1.51.0) (2023-06-06)

### πŸ• Features

* add share tracking ([#1250](#1250)) ([5b7d331](5b7d331))
* implement dynamic redirect on auth ([#1240](#1240)) ([548cc4d](548cc4d))

### πŸ› Bug Fixes

* Footer Location on Smaller Screens ([#1242](#1242)) ([8b2356a](8b2356a))
* reports select issue ([#1239](#1239)) ([a48bc87](a48bc87))
* update contributors hook to use contributor API endpoint ([#1238](#1238)) ([eff01c0](eff01c0))
* update hook for Posthog ([cd4f32c](cd4f32c))
* update medium activity threshold for repositories ([#1251](#1251)) ([4730533](4730533)), closes [#1224](#1224)
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

πŸŽ‰ This PR is included in version 1.51.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.51.0-beta.2](open-sauced/app@v1.51.0-beta.1...v1.51.0-beta.2) (2023-06-06)

### πŸ• Features

* add share tracking ([#1250](open-sauced/app#1250)) ([5b7d331](open-sauced/app@5b7d331))

### πŸ› Bug Fixes

* update hook for Posthog ([cd4f32c](open-sauced/app@cd4f32c))
* update medium activity threshold for repositories ([#1251](open-sauced/app#1251)) ([4730533](open-sauced/app@4730533)), closes [#1224](open-sauced/app#1224)
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.51.0](open-sauced/app@v1.50.0...v1.51.0) (2023-06-06)

### πŸ• Features

* add share tracking ([#1250](open-sauced/app#1250)) ([5b7d331](open-sauced/app@5b7d331))
* implement dynamic redirect on auth ([#1240](open-sauced/app#1240)) ([548cc4d](open-sauced/app@548cc4d))

### πŸ› Bug Fixes

* Footer Location on Smaller Screens ([#1242](open-sauced/app#1242)) ([8b2356a](open-sauced/app@8b2356a))
* reports select issue ([#1239](open-sauced/app#1239)) ([a48bc87](open-sauced/app@a48bc87))
* update contributors hook to use contributor API endpoint ([#1238](open-sauced/app#1238)) ([eff01c0](open-sauced/app@eff01c0))
* update hook for Posthog ([cd4f32c](open-sauced/app@cd4f32c))
* update medium activity threshold for repositories ([#1251](open-sauced/app#1251)) ([4730533](open-sauced/app@4730533)), closes [#1224](open-sauced/app#1224)
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.

3 participants