setup google analytics and production urls

This commit is contained in:
Connor Turland 2014-10-18 12:46:45 -04:00
parent a96a0852db
commit 1f7df00d3c
3 changed files with 4 additions and 3 deletions

View file

@ -1588,6 +1588,7 @@ Metamaps.Util = {
Metamaps.Realtime = {
stringForLocalhost: 'http://localhost:5001',
stringForMetamaps: 'http://metamaps.cc:5001',
stringForTVW: 'http://tvw.mooo.com:5001',
stringForHeroku: 'http://gentle-savannah-1303.herokuapp.com',
socket: null,
isOpen: false,
@ -1610,7 +1611,7 @@ Metamaps.Realtime = {
$('body').click(self.close);
var railsEnv = $('body').data('env');
var whichToConnect = railsEnv === 'development' ? self.stringForLocalhost : self.stringForHeroku;
var whichToConnect = railsEnv === 'development' ? self.stringForLocalhost : self.stringForTVW;
self.socket = io.connect(whichToConnect);
self.startActiveMap();
},

View file

@ -6,7 +6,7 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35984510-1']);
_gaq.push(['_setAccount', 'UA-55855180-1']);
_gaq.push(['_trackPageview']);
(function() {

View file

@ -9,7 +9,7 @@ if (args.length <= 1) {
//configurable variables - CHANGE ME
var mapID = args[1];
var environment = args[2];
var address = environment === 'development' ? 'http://localhost:3000' : 'http://metamaps.herokuapp.com';
var address = environment === 'development' ? 'http://localhost:3000' : 'http://tvw.mooo.com';
var url = address + '/maps/' + mapID;
var width = 940;
var height = 630;