Skip to content

Commit

Permalink
Merge pull request reactplay#502 from reactplay/umami-analytics
Browse files Browse the repository at this point in the history
reactplay#501 [Feature]: Add umami analytics for reactplayIo
  • Loading branch information
atapas committed Aug 19, 2022
2 parents f8f1e3e + 9a2a315 commit e603ca0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<title>
ReactPlay - One app to learn, create, and share ReactJS projects.
</title>
<script
async
defer
data-website-id="%REACT_APP_UMAMI_TRACK_ID%"
src="https://analytics.reactplay.io/umami.js"
></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
4 changes: 2 additions & 2 deletions src/common/header/HeaderNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const HeaderNav = ({ showBrowse }) => {
href="https://github.com/reactplay/react-play/blob/main/CREATE-PLAY.md"
target="_blank"
rel="noopener noreferrer"
className="app-header-btn app-header-btn--primary"
className="app-header-btn app-header-btn--primary umami--click--create-play"
>
<IoAddSharp className="icon" />
<span className="btn-label">Create</span>
Expand All @@ -126,7 +126,7 @@ const HeaderNav = ({ showBrowse }) => {
href="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/reactplay/react-play"
target="_blank"
rel="noopener noreferrer"
className="app-header-btn app-header-btn--default"
className="app-header-btn app-header-btn--default umami--click--github"
>
<BsGithub className="icon" />
<span className="btn-label">GitHub</span>
Expand Down
4 changes: 2 additions & 2 deletions src/common/home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Home = () => {
href="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/reactplay/react-play"
target="_blank"
rel="noopener noreferrer"
className="body-c2a-btn"
className="body-c2a-btn umami--click--github"
>
<BsGithub className="icon" />
<span className="btn-label">
Expand Down Expand Up @@ -193,4 +193,4 @@ const Home = () => {
);
};

export default Home;
export default Home;

0 comments on commit e603ca0

Please sign in to comment.