microsoft / microsoft/applicationinsights-react-js

React plugin Page View on history replace

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
47
Forks
18
Avg merge
1d 2h
Merged PRs (30d)
8

Description

The React plugin currently tracks a page view every time the history listener is called, even during a page replace. This may not be desirable to those who replace the current page to update page state, since that currently causes a new page view to be tracked.

Could we consider excluding page replaces or adding an option to exclude page replaces from tracking page views?

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

Locate the React plugin's history listener and page-view tracking entry point, then inspect how history replaces are detected. Determine whether the intended behavior is to always exclude replaces or to add a configurable option; done means replace operations no longer create unwanted page views while normal navigation still does.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, observability
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.