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

chore: Add Hotjar integration #654

Merged

Conversation

2dpetkov
Copy link
Contributor

  • add a build script to inject Hotjar code snippet in all entry points
  • add a build:inject-analytics npm script, so that the Vercel custom build command limitation of 256 characters is not hit when all scripts are included

Copy link

vercel bot commented Jun 10, 2024

@2dpetkov is attempting to deploy a commit to the dYdX Trading Team on Vercel.

A member of the Team first needs to authorize it.

scripts/inject-hotjar.js Outdated Show resolved Hide resolved
@2dpetkov 2dpetkov force-pushed the ddp-upstream-add-hotjar-inject branch 2 times, most recently from da75a2a to 857ee56 Compare June 10, 2024 18:33
.env.example Outdated Show resolved Hide resolved
@2dpetkov 2dpetkov force-pushed the ddp-upstream-add-hotjar-inject branch from 857ee56 to 61fe70e Compare June 11, 2024 15:32
Copy link

vercel bot commented Jul 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 3:10pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 3:10pm

scripts/README.md Outdated Show resolved Hide resolved
@@ -37,6 +37,7 @@ jobs:
run: |
pnpm run build
pnpm run build:inject-amplitude
pnpm run build:inject-hotjar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi that this workflow is no longer used!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall I then drop this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good to keep -- i'll do another pass later on to remove unused workflows!


<b>To use with dydxprotocol/v4-web:</b>
1. Hotjar account with Site Id and Hotjar version.
2. Add Site Id and Hotjar version in Github > Secrets and Variables > Actions as `HOTJAR_SITE_ID` and `HOTJAR_VERSION`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah the instruction for amplitude was outdated - we can keep this, but in reality the variables only need to be added on vercel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirming that DOS's prod deployment will have that in Vercel ✅

fix typo

Co-authored-by: aleka <aforaleka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants