Skip to content

Commit

Permalink
analytics: remove token and date from url, for privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Aug 16, 2017
1 parent cf6b8ae commit 9bdb46b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/comment-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ <h3>Editing comment from card <a href="https://trello.com/c/{{comment.data.card.
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1858235-24', 'auto');
ga('send', 'pageview');
var path = document.location.pathname;
ga('send', 'pageview', path.split('/').slice(0, -2).join('/')); // remove token and date
</script>
</body>
</html>

0 comments on commit 9bdb46b

Please sign in to comment.