mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
Added GA
This commit is contained in:
parent
ef75e594c1
commit
3def874398
@ -222,10 +222,15 @@ $(function() {
|
||||
socket.on('login', function (data) {
|
||||
connected = true;
|
||||
// Display the welcome message
|
||||
var message = "FattyChat - Anonomous Chat";
|
||||
var message = "Fatty.chat - Anonomous Chat";
|
||||
log(message, {
|
||||
prepend: true
|
||||
});
|
||||
|
||||
message = "Chatrooms are destroyed after all participants exit. Chat history is not persistent and not saved.";
|
||||
|
||||
log(message);
|
||||
|
||||
addParticipantsMessage(data);
|
||||
});
|
||||
|
||||
|
@ -21,5 +21,15 @@
|
||||
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="/main.js"></script>
|
||||
<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-72169154-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user