IQSS / IQSS/dataverse-frontend
Integrate Get Analytics Use Case
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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