# How to make tracker work in React applications

**URL:** <https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593>\
**Category:** Data collection and tags\
**Created:** [February 2, 2023, 3:51pm UTC](https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593 "2023-02-02T15:51:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stan\_Turner](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/stan_turner/32/1286_2.png) [@Stan\_Turner](https://community.piwik.pro/u/Stan_Turner)\
**Post date:** [February 2, 2023, 3:51pm UTC](https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593/1 "2023-02-02T15:51:48Z")

</div>

I have followed the PiwikPRO documentation using the Piwk PRO library for react. The connection seems to work great. I am able to check the visitorID in the console. I am able to use the debug mode on my page. And when I test the PageViews.trackPageView() function locally I get the following log in my console as expected: `Push (2) ['trackPageView', '/srl/1']"`

However, when I navigate to the Tracker debugger on the piwikPro dashboard there is zero data. There is not a single piece of data tracked. Am I doing something wrong in the implementation?

---

<div class="post-metadata">

**Author:** ![Piotrek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/piotrek/32/160_2.png) [@Piotrek](https://community.piwik.pro/u/Piotrek)\
**Post date:** [February 2, 2023, 4:03pm UTC](https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593/2 "2023-02-02T16:03:27Z")

</div>

@Stan_Turner do you see any network requests to your Piwik PRO account in browser DevTools? If so, I’d check the status codes (if you’re getting 2XX responses on those requests).

Another thing to check - how did you set up `PiwikPro.initialize()`? A common reason for not seeing any data in Tracker debugger is wrong configuration there (wrong URL or site ID provided).

---

<div class="post-metadata">

**Author:** ![Stan\_Turner](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/stan_turner/32/1286_2.png) [@Stan\_Turner](https://community.piwik.pro/u/Stan_Turner)\
**Post date:** [February 6, 2023, 12:45pm UTC](https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593/3 "2023-02-06T12:45:58Z")

</div>

@Piotrek Thanks for your reply. Yes I do see network requests to the url specified as the container URL. When I look at all the network requests in my DevTools and I filter on ppms I get a new request (200 response) every time I visit a new page.

The debug mode also shows the container name shown in the PiwikPro analytics overview.

`PiwikPro.initialize()` is being used in the highest level application module. Where I also use `ReachtDom.render()`

The URL and site ID were provided by a third party. I believe the URL and site ID are correct since the debug mode shows the container name (this name is never specified anywhere in the code project itself).

Is there another way to test if this is the correct URL and/or site ID? Or is there something else going wrong?

---

<div class="post-metadata">

**Author:** ![Stan\_Turner](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/stan_turner/32/1286_2.png) [@Stan\_Turner](https://community.piwik.pro/u/Stan_Turner)\
**Post date:** [February 6, 2023, 2:38pm UTC](https://community.piwik.pro/t/how-to-make-tracker-work-in-react-applications/1593/4 "2023-02-06T14:38:08Z")

</div>

The third party accidentally created two containers and gave me access to the wrong container.
