Skip to content

Commit 655d753

Browse files
committed
Add Google analytics code to browser demo
1 parent 968f2c7 commit 655d753

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

demo/browser.html

+8
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,13 @@ <h1>PDFKit Browser Demo</h1>
3535
<div id="editor"></div>
3636
<iframe width="600" height="775"></iframe>
3737
<script src="bundle.js"></script>
38+
<script>
39+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
40+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
41+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
42+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
43+
ga('create', 'UA-48340245-1', 'pdfkit.org');
44+
ga('send', 'pageview');
45+
</script>
3846
</body>
3947
</html>

0 commit comments

Comments
 (0)