Skip to content

Commit

Permalink
Merge pull request #20 from ScilifelabDataCentre/matomo_branch
Browse files Browse the repository at this point in the history
Old matomo-tracker-react was not working, trying another version
  • Loading branch information
SevLG authored Jan 22, 2024
2 parents d1e20ef + 2c7ea27 commit 0acc7f5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
36 changes: 19 additions & 17 deletions react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@datapunt/matomo-tracker-react": "^0.5.1",
"@jonkoops/matomo-tracker-react": "^0.7.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
7 changes: 4 additions & 3 deletions react-app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { MatomoProvider, createInstance } from '@datapunt/matomo-tracker-react'
import { MatomoProvider, createInstance } from '@jonkoops/matomo-tracker-react'
import './index.css';
import App from './App';

Expand All @@ -15,7 +15,8 @@ const root = ReactDOM.createRoot(
);
root.render(
<React.StrictMode>
<App />
<MatomoProvider value={instance} />
<MatomoProvider value={instance}>
<App />
</MatomoProvider>
</React.StrictMode>
);

0 comments on commit 0acc7f5

Please sign in to comment.