Altinn / Altinn/info.altinn.no
Siteimprove events
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 2
- Avg merge
- 20h 21m
- Merged PRs (30d)
- 32
Description
Dette ble meldt av Ola 7.sept.2026:
> Det er de to nye css-klasserna för externa- og altinn-skjeman som skall pushes vid click med kategori 'link external form' og 'start altinn form'. Den kod jag testet för dette i consolen ser ut såhär:
```javascript
document.querySelectorAll('.altinn-skjema-link').forEach(function (el) {
el.addEventListener('click', function () {
var h1 = document.querySelector('h1');
var label = h1 ? h1.textContent.trim() : '(no h1)';
_sz.push(['event', 'start altinn form', 'Click', label]);
});
});
```
Og såhär:
```javascript
document.querySelectorAll('.external-skjema-link').forEach(function (el) {
el.addEventListener('click', function () {
var h1 = document.querySelector('h1');
var label = h1 ? h1.textContent.trim() : '(no h1)';
_sz.push(['event', 'link external form', 'Click', label]);
});
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the TypeScript codebase for the .altinn-skjema-link and .external-skjema-link classes and existing Siteimprove _sz event tracking. Confirm how click handlers are registered and how the page heading is obtained. Done means clicks on both classes push the specified event category, action, and heading label.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- analytics, frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100