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

Implement analytics in Nuxt #844

Merged
merged 28 commits into from
Mar 17, 2023
Merged

Implement analytics in Nuxt #844

merged 28 commits into from
Mar 17, 2023

Conversation

dhruvkb
Copy link
Member

@dhruvkb dhruvkb commented Mar 6, 2023

Fixes

Fixes #825 by @dhruvkb

Description

This PR implements a framework in Nuxt for sending analytic events to Plausible. It also adds an event as an example.

Testing Instructions

  1. Check out the PR and run
    • the backend setup, just up
    • the frontend dev server just frontend/run dev
  2. Open Plausible in a new tab at localhost:50288.
  3. Visit some URLs in the dev server and see stats roll in.
  4. Set up a custom event CLICK_HOME_GALLERY_IMAGE in the Plausible UI.
  5. Click on some homepage gallery images.
  6. See custom event goals showing up in the lower part of the UI.

Checklist

  • My pull request has a descriptive title (not a vague title like
    Update index.md).
  • My pull request targets the default branch of the repository (main) or
    a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible
    errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@dhruvkb dhruvkb added this to the Analytics milestone Mar 6, 2023
@openverse-bot openverse-bot added 🟧 priority: high Stalls work on the project or its dependents 🌟 goal: addition Addition of new feature 💻 aspect: code Concerns the software code in the repository labels Mar 6, 2023
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

Full-stack documentation: Ready

https://WordPress.github.io/openverse/_preview/844

Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again.

You can check the GitHub pages deployment action list to see the current status of the deployments.

@dhruvkb
Copy link
Member Author

dhruvkb commented Mar 6, 2023

Blocking this on other PRs #804 and #843.

@dhruvkb dhruvkb added the ⛔ status: blocked Blocked & therefore, not ready for work label Mar 6, 2023
@zackkrida zackkrida mentioned this pull request Mar 7, 2023
26 tasks
Copy link
Collaborator

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

Some initial feedback. Forgive me if I am missing something that invalidates my recommendation. This is exciting work and I don't want to delay it. I believe my recommendations (if valid) make the PR get in faster because I think they would massively reduce the amount of code required to implement the baseline for event tracking.

frontend/src/middleware/page-views.ts Outdated Show resolved Hide resolved
frontend/src/composables/use-analytics.ts Outdated Show resolved Hide resolved
@dhruvkb dhruvkb requested a review from sarayourfriend March 9, 2023 17:09
@dhruvkb dhruvkb marked this pull request as ready for review March 9, 2023 17:10
@dhruvkb dhruvkb requested a review from a team as a code owner March 9, 2023 17:10
@dhruvkb dhruvkb requested a review from zackkrida March 9, 2023 17:10
@sarayourfriend
Copy link
Collaborator

My only concern is that you were a bit too early to review it (given it was a draft), because most of the points you mentioned were already under implementation and you could have saved yourself a lot of trouble had you reviewed it a bit "later". Most issues you raised were points of experimentation that would have never made it to the final PR.

Gotcha, sorry about that. I misunderstood what we discussed in the Plausible RFC issue and thought you'd wanted me to share feedback here, folding in what I'd pointed out in the RFC. Apologies for moving too quickly.

The summarised changes you shared here look great, I'll review the code today, but I'm sure it's great.

One potential improvement is that we can use Nginx for the redirect, and it could be better performance wise to not tie up the event loop with those redirects, even if they're fast. Just something to note if we notice any degradation in performance, considering these requests happen for every new client page load.

Copy link
Collaborator

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

Looks great other than the question regarding the proxy configuration 🙂

frontend/nuxt.config.ts Outdated Show resolved Hide resolved
@dhruvkb
Copy link
Member Author

dhruvkb commented Mar 9, 2023

@sarayourfriend I am really thankful and appreciative that you reviewed it as quickly and as thoroughly as you did.

Base automatically changed from plausible to main March 10, 2023 15:51
@dhruvkb dhruvkb requested review from a team as code owners March 10, 2023 15:51
@dhruvkb dhruvkb added 🧱 stack: frontend Related to the Nuxt frontend and removed ⛔ status: blocked Blocked & therefore, not ready for work labels Mar 11, 2023
@dhruvkb
Copy link
Member Author

dhruvkb commented Mar 11, 2023

One outlying question: Are we going to have plausible running in staging? If so then we might need to configure the script domains using an environment variable so that we can include the correct subdomain per deployment stage. If not then this isn't an issue, but we probably need to have another environment variable to disable it in staging.
- @sarayourfriend

i don’t think we want analytics actively running on staging
- @zackkrida

Plausible does not prevent us from sending events to it even if the site does not exist. So we could technically let the staging server keep sending info to Plausible that would be discarded by them.

When we do need to track events, we can register the staging site on our Plausible cloud account, do the tracking we need to do, and then delete the site (and associated data) thus stopping tracking again. Also the feature flag for analytics would be switched off in staging during which no events will be sent to Plausible.

$ curl --location 'https://plausible.io/api/event' \
--header 'Content-Type: application/json' \
--data '{
  "n": "pageview",
  "u": "https://staging.openverse.org/",
  "d": "staging.openverse.org",
  "r": "https://staging.openverse.org/",
  "w": 999,
  "h": 2
}'

ok

$ curl --location 'https://plausible.io/api/event' \
--header 'Content-Type: application/json' \
--data '{
  "n": "CUSTOM_EVENT",
  "u": "https://staging.openverse.org/",
  "d": "staging.openverse.org",
  "r": "https://staging.openverse.org/",
  "p": "{\"key\":\"value\"}",
  "w": 999,
  "h": 2
}'

ok

Copy link
Collaborator

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

I've tested this locally, and it looks good to me. Everything works, following the testing instructions. Plausible's UI is simple but easy to use.

I noticed two three things as I was playing around with Plausible and the custom events. None of these are blocking issues and should be addressed in follow-up issues or clarified in documentation whether they're expected behaviour.

  1. The "entry" pages appears to be tied to a specific user/session. If a person reloads a page, it doesn't think of it as a new "entry" and so does not fully capture every server rendered page.
  2. The width and height props on custom events are going to be interesting to use and I wonder if there are other ways of encoding the data, perhaps as an additional prop (breakpoint, for width, like we do with the UI state cookie?). It currently gives a separate bar graph for every single instance of every single width, so at a glance, at least from the Plausible UI, it's basically useless. We can transform this ourselves once we're analysing the data in our own pipelines, but if we're doing anything "at a glance" with these, we'll want to consider encoding ranges as a separate prop to make it easier for a human to understand.
    image
  3. To test things on localhost, you must visit with "localhost" as the domain. You cannot do what I tried to do (for far too long before I realised what was happening) and visit the site on another device on your local network at the LAN IP. We'd need to set up some kind of expected hosts file configuration for being able to test on multiple devices like openverse.local so that other devices can have the correct referrer on the request to Plausible. This is worth clarifying in the documentation (along with any other limitations we might be aware of in testing) and opening an issue to explore ways of fixing it that won't intrude on the average use case.

Anyway, like I said, none of these are blockers or should be addressed in this PR. This PR is good to go from my perspective and I'm exciting to start getting to use this!

@github-actions
Copy link

github-actions bot commented Mar 15, 2023

Size Change: +3.64 kB (0%)

Total Size: 882 kB

Filename Size Change
./frontend/.nuxt/dist/client/app.js 143 kB +253 B (0%)
./frontend/.nuxt/dist/client/app.modern.js 117 kB +278 B (0%)
./frontend/.nuxt/dist/client/commons/app.js 87.8 kB -11 B (0%)
./frontend/.nuxt/dist/client/components/v-all-results-grid.modern.js 5.5 kB +13 B (0%)
./frontend/.nuxt/dist/client/components/v-home-gallery.js 5.18 kB +382 B (+8%) 🔍
./frontend/.nuxt/dist/client/components/v-home-gallery.modern.js 5.17 kB +377 B (+8%) 🔍
./frontend/.nuxt/dist/client/pages/index.js 7.28 kB +376 B (+5%) 🔍
./frontend/.nuxt/dist/client/pages/index.modern.js 7.21 kB +371 B (+5%) 🔍
./frontend/.nuxt/dist/client/vendors/app.js 64.2 kB +746 B (+1%)
./frontend/.nuxt/dist/client/vendors/app.modern.js 63.3 kB +836 B (+1%)
ℹ️ View Unchanged
Filename Size Change
./frontend/.nuxt/dist/client/235.js 273 B 0 B
./frontend/.nuxt/dist/client/235.modern.js 278 B +1 B (0%)
./frontend/.nuxt/dist/client/236.js 1.85 kB 0 B
./frontend/.nuxt/dist/client/commons/app.modern.js 78.2 kB +8 B (0%)
./frontend/.nuxt/dist/client/components/loading-icon.js 746 B 0 B
./frontend/.nuxt/dist/client/components/loading-icon.modern.js 753 B 0 B
./frontend/.nuxt/dist/client/components/table-sort-icon.js 514 B 0 B
./frontend/.nuxt/dist/client/components/table-sort-icon.modern.js 519 B 0 B
./frontend/.nuxt/dist/client/components/v-all-results-grid.js 8.01 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-cell.js 393 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-cell.modern.js 397 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-details.js 2.55 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-details.modern.js 1.79 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track-skeleton.js 1.02 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track-skeleton.modern.js 1.02 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track.js 5.23 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track.modern.js 5.17 kB +6 B (0%)
./frontend/.nuxt/dist/client/components/v-back-to-search-results-link.js 542 B 0 B
./frontend/.nuxt/dist/client/components/v-back-to-search-results-link.modern.js 547 B 0 B
./frontend/.nuxt/dist/client/components/v-bone.js 692 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-bone.modern.js 697 B 0 B
./frontend/.nuxt/dist/client/components/v-box-layout.js 1.24 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-box-layout.modern.js 1.24 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-link.js 1.12 kB 0 B
./frontend/.nuxt/dist/client/components/v-content-link.modern.js 1.1 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-page.js 526 B 0 B
./frontend/.nuxt/dist/client/components/v-content-page.modern.js 529 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-button.js 784 B -2 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-button.modern.js 789 B 0 B
./frontend/.nuxt/dist/client/components/v-content-report-form.js 6.11 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-form.modern.js 3.59 kB 0 B
./frontend/.nuxt/dist/client/components/v-content-report-popover.js 1.23 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-popover.modern.js 4.25 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-button.js 4 kB 0 B
./frontend/.nuxt/dist/client/components/v-copy-button.modern.js 4.01 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-license.js 1 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-license.modern.js 1.01 kB 0 B
./frontend/.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/d219393b.js 9.95 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/d219393b.modern.js 9.93 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-dmca-notice.js 754 B 0 B
./frontend/.nuxt/dist/client/components/v-dmca-notice.modern.js 759 B 0 B
./frontend/.nuxt/dist/client/components/v-error-image.js 1.7 kB 0 B
./frontend/.nuxt/dist/client/components/v-error-image.modern.js 1.69 kB 0 B
./frontend/.nuxt/dist/client/components/v-error-section.js 372 B 0 B
./frontend/.nuxt/dist/client/components/v-error-section.modern.js 376 B 0 B
./frontend/.nuxt/dist/client/components/v-external-search-form.js 1.92 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-external-search-form.modern.js 1.92 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-external-source-list.js 903 B 0 B
./frontend/.nuxt/dist/client/components/v-external-source-list.modern.js 907 B 0 B
./frontend/.nuxt/dist/client/components/v-full-layout.js 1.52 kB 0 B
./frontend/.nuxt/dist/client/components/v-full-layout.modern.js 1.52 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-grid-skeleton.js 1.62 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-grid-skeleton.modern.js 1.63 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-homepage-content.js 1.76 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-homepage-content.modern.js 1.73 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-image-carousel.js 4.73 kB 0 B
./frontend/.nuxt/dist/client/components/v-image-carousel.modern.js 4.71 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-image-cell.js 1.57 kB 0 B
./frontend/.nuxt/dist/client/components/v-image-cell.modern.js 1.56 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-image-details.js 2.16 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-image-details.modern.js 1.43 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-image-grid.js 4.99 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-image-grid.modern.js 2.52 kB 0 B
./frontend/.nuxt/dist/client/components/v-license-tab-panel.js 526 B 0 B
./frontend/.nuxt/dist/client/components/v-license-tab-panel.modern.js 530 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-load-more.js 3.17 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-load-more.modern.js 695 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-media-license.js 827 B 0 B
./frontend/.nuxt/dist/client/components/v-media-license.modern.js 837 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-media-reuse.js 1.63 kB 0 B
./frontend/.nuxt/dist/client/components/v-media-reuse.modern.js 1.63 kB 0 B
./frontend/.nuxt/dist/client/components/v-media-tag.js 435 B 0 B
./frontend/.nuxt/dist/client/components/v-media-tag.modern.js 439 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-modal.js 1.01 kB 0 B
./frontend/.nuxt/dist/client/components/v-modal.modern.js 996 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-no-results.js 757 B 0 B
./frontend/.nuxt/dist/client/components/v-no-results.modern.js 755 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-radio.js 1.51 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-radio.modern.js 1.47 kB 0 B
./frontend/.nuxt/dist/client/components/v-related-audio.js 1.26 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-related-audio.modern.js 1.27 kB 0 B
./frontend/.nuxt/dist/client/components/v-related-images.js 1.06 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-related-images.modern.js 3.09 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-report-desc-form.js 978 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-report-desc-form.modern.js 981 B 0 B
./frontend/.nuxt/dist/client/components/v-row-layout.js 1.71 kB 0 B
./frontend/.nuxt/dist/client/components/v-row-layout.modern.js 1.72 kB 0 B
./frontend/.nuxt/dist/client/components/v-scroll-button.js 825 B 0 B
./frontend/.nuxt/dist/client/components/v-scroll-button.modern.js 830 B 0 B
./frontend/.nuxt/dist/client/components/v-search-grid.js 5.75 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-search-grid.modern.js 5.68 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-search-results-title.js 600 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-search-results-title.modern.js 605 B 0 B
./frontend/.nuxt/dist/client/components/v-search-type-radio.js 806 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-search-type-radio.modern.js 780 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-server-timeout.js 300 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-server-timeout.modern.js 303 B 0 B
./frontend/.nuxt/dist/client/components/v-sketch-fab-viewer.js 3.4 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-sketch-fab-viewer.modern.js 914 B +2 B (0%)
./frontend/.nuxt/dist/client/components/v-snackbar.js 1.19 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-snackbar.modern.js 1.19 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-sources-table.js 16.2 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-sources-table.modern.js 16.2 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-warning-suppressor.js 306 B 0 B
./frontend/.nuxt/dist/client/components/v-warning-suppressor.modern.js 311 B 0 B
./frontend/.nuxt/dist/client/pages/about.js 1.4 kB 0 B
./frontend/.nuxt/dist/client/pages/about.modern.js 1.4 kB 0 B
./frontend/.nuxt/dist/client/pages/audio/_id/index.js 8.02 kB 0 B
./frontend/.nuxt/dist/client/pages/audio/_id/index.modern.js 4.85 kB -2 B (0%)
./frontend/.nuxt/dist/client/pages/external-sources.js 1.56 kB 0 B
./frontend/.nuxt/dist/client/pages/external-sources.modern.js 1.56 kB -2 B (0%)
./frontend/.nuxt/dist/client/pages/feedback.js 1.34 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/feedback.modern.js 1.34 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/index.js 9.32 kB +5 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/index.modern.js 5.17 kB -6 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/report.js 3.64 kB -3 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/report.modern.js 4.25 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/preferences.js 1.32 kB 0 B
./frontend/.nuxt/dist/client/pages/preferences.modern.js 1.32 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/privacy.js 1.01 kB 0 B
./frontend/.nuxt/dist/client/pages/privacy.modern.js 1.02 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/search-help.js 1.6 kB 0 B
./frontend/.nuxt/dist/client/pages/search-help.modern.js 1.58 kB 0 B
./frontend/.nuxt/dist/client/pages/search.js 4.56 kB +2 B (0%)
./frontend/.nuxt/dist/client/pages/search.modern.js 2.04 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/search/audio.js 6.03 kB -4 B (0%)
./frontend/.nuxt/dist/client/pages/search/audio.modern.js 3.55 kB +8 B (0%)
./frontend/.nuxt/dist/client/pages/search/image.js 507 B -1 B (0%)
./frontend/.nuxt/dist/client/pages/search/image.modern.js 2.71 kB +3 B (0%)
./frontend/.nuxt/dist/client/pages/search/index.js 442 B -1 B (0%)
./frontend/.nuxt/dist/client/pages/search/index.modern.js 447 B 0 B
./frontend/.nuxt/dist/client/pages/search/model-3d.js 243 B 0 B
./frontend/.nuxt/dist/client/pages/search/model-3d.modern.js 246 B 0 B
./frontend/.nuxt/dist/client/pages/search/search-page.types.js 266 B 0 B
./frontend/.nuxt/dist/client/pages/search/search-page.types.modern.js 271 B 0 B
./frontend/.nuxt/dist/client/pages/search/video.js 240 B 0 B
./frontend/.nuxt/dist/client/pages/search/video.modern.js 244 B 0 B
./frontend/.nuxt/dist/client/pages/sources.js 1.57 kB 0 B
./frontend/.nuxt/dist/client/pages/sources.modern.js 1.57 kB +2 B (0%)
./frontend/.nuxt/dist/client/runtime.js 2.72 kB 0 B
./frontend/.nuxt/dist/client/runtime.modern.js 2.73 kB 0 B

compressed-size-action

@WordPress WordPress deleted a comment from github-actions bot Mar 17, 2023
Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

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

I tested this locally and the events work well. Great to have everything typed.

There are no tests. Should we add them in subsequent PRs?

@dhruvkb
Copy link
Member Author

dhruvkb commented Mar 17, 2023

Good point, @obulat! I'll add tests in a separate PR, which will focus on the usage of this utility to record all the custom events.

@dhruvkb dhruvkb merged commit 235a327 into main Mar 17, 2023
@dhruvkb dhruvkb deleted the plausible_nuxt branch March 17, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🌟 goal: addition Addition of new feature 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up wrangling for events
4 participants