Skip to content

Commit 016418d

Browse files
committed
add GA
1 parent cd3d74f commit 016418d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

public/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,13 @@
4040
</svg>
4141
</a>
4242
</body>
43+
<script>
44+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
45+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
46+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
47+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
48+
49+
ga('create', 'UA-52574938-2', 'auto');
50+
ga('send', 'pageview');
51+
</script>
4352
</html>

src/react-aplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import APlayer from 'aplayer';
55
const events = ['play', 'pause', 'playing', 'canplay', 'ended', 'error'];
66
const capitalize = function(str) {
77
return str[0].toUpperCase() + str.slice(1);
8-
}
8+
};
99

1010
export default class ReactAplayer extends React.Component {
1111
constructor(props) {

0 commit comments

Comments
 (0)