Skip to content

Commit

Permalink
GA is now firing after page render; typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
payalnik committed Jun 29, 2015
1 parent 06e9c3b commit 9cfb3cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
10 changes: 0 additions & 10 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,5 @@
</head>

<body >
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-0-1', 'auto');
ga('send', 'pageview');

</script>
</body>
</html>
9 changes: 9 additions & 0 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ function draw(content){
new Promise(function (){addPosts(drop,toAdd,0);});
};
}else body.appendChild(genPost(content.posts));

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-0-1', 'auto');
ga('send', 'pageview');

}
function addPosts(drop, toAdd, offset){
var url = matrix.cfg.srvurl + "/posts?offset="+offset+"&limit="+(toAdd*matrix.cfg.mul);
Expand Down
2 changes: 1 addition & 1 deletion templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ var templates = {"nodes": [
]}
,{"c":"priv-new-user"
,"children":[
,{"t":"p", "txt": "Please comfirm the password<br>There is no way to recover it later"}
,{"t":"p", "txt": "Please confirm the password<br>There is no way to recover it later"}
,{"c":"priv-pass-i" , "t":"input","p":{"type":"password"} }
,{"c":"priv-pass-submit", "t":"button", "txt":"OK"}
,{"c":"priv-pass-cancel", "t":"button", "txt":"Cancel" }
Expand Down

0 comments on commit 9cfb3cd

Please sign in to comment.