Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update README files #12056

Open
wants to merge 13 commits into
base: latest
Choose a base branch
from
4 changes: 2 additions & 2 deletions src/app/components/ATIAnalytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ There is a custom hook within Simorgh that handles logging click events.

- [useClickTrackerHandler](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useClickTrackerHandler/index.jsx) is a custom hook that returns a click event handler that you can assign to the `onClick` attribute of the DOM element you'd like to click track.

You can find instructions and examples on how to set up and use this custom hook [here](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useClickTrackerHandler/README.md).
You can find instructions and examples on how to set up and use this custom hook [here](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useClickTrackerHandler/README.mdx).

## Logging View Events

There is a custom hook within Simorgh that handles logging view events.

- [useViewTracker](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useViewTracker/index.jsx) is a custom hook that returns a `ref` that you can assign to DOM elements you'd like to view track.

You can find instructions and examples on how to set up and use this custom hook [here](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useViewTracker/README.md).
You can find instructions and examples on how to set up and use this custom hook [here](https://github.com/bbc/simorgh/blob/latest/src/app/hooks/useViewTracker/README.mdx).

## Tag Inspector

Expand Down