IQSS / IQSS/dataverse-frontend

Integrate Get Analytics Use Case

Open
#670 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

FY25 Sprint 23 FY25 Sprint 24 FY25 Sprint 25 FY25 Sprint 26 FY26 Sprint 1 FY26 Sprint 2 FY26 Sprint 3 GREI Re-arch Original size: 20 Size: 20 SPA.Q2.12 Waiting
Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

Get the analytics.html from the installation and if present, inject it in the SPA <head/>.
To test this we will need to start from this harvard installation analytics and modify it to work for SPA element selectors.
Note that we should not add click listeners to the buttons as they might no be mounted when the script runs, so we should add a listener to the body and delegate events through data-selectors, e.g: <button data-analytics-id="publish-dataset">Publish Dataset</button>

Depends on:

This issue depends on this JS-Datavarse issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Harvard installation file customization/analytics-code.html and the linked JS-Datavarse issue #295, which this work depends on. Determine how analytics.html is obtained and injected into the SPA head, then verify that analytics events use body delegation and data-selectors such as publish-dataset. Done means the installation analytics is present and works with SPA element selectors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
analytics, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.