microsoft / microsoft/ApplicationInsights-JS

[Feature] Enable a callback to obtain the pageName as part of the analytics

Open
#1,986 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement SPA support
Dominant language
TypeScript
Stars
685
Forks
261
Avg merge
21h 33m
Merged PRs (30d)
5

Description

Suggested approach would be to move (or duplicate) the IValueCallback capability to the analytics extension

https://github.com/microsoft/ApplicationInsights-JS/blob/3f969761a9654da534b9ab82cf13815b31ffb4ca/extensions/applicationinsights-clickanalytics-js/src/Interfaces/Datamodel.ts#L113-L121

This would enable a callback for SPA applications to programmatically derive the current page name.

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 extensions/applicationinsights-clickanalytics-js/src/Interfaces/Datamodel.ts, especially the linked IValueCallback definition, and read how the analytics extension models page data. Trace the analytics entry points to determine where a SPA page-name callback would be accepted; done means the analytics extension can obtain the current page name programmatically.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
analytics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.