setup google analytics and production urls
This commit is contained in:
parent
a96a0852db
commit
1f7df00d3c
3 changed files with 4 additions and 3 deletions
|
@ -1588,6 +1588,7 @@ Metamaps.Util = {
|
||||||
Metamaps.Realtime = {
|
Metamaps.Realtime = {
|
||||||
stringForLocalhost: 'http://localhost:5001',
|
stringForLocalhost: 'http://localhost:5001',
|
||||||
stringForMetamaps: 'http://metamaps.cc:5001',
|
stringForMetamaps: 'http://metamaps.cc:5001',
|
||||||
|
stringForTVW: 'http://tvw.mooo.com:5001',
|
||||||
stringForHeroku: 'http://gentle-savannah-1303.herokuapp.com',
|
stringForHeroku: 'http://gentle-savannah-1303.herokuapp.com',
|
||||||
socket: null,
|
socket: null,
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
|
@ -1610,7 +1611,7 @@ Metamaps.Realtime = {
|
||||||
$('body').click(self.close);
|
$('body').click(self.close);
|
||||||
|
|
||||||
var railsEnv = $('body').data('env');
|
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.socket = io.connect(whichToConnect);
|
||||||
self.startActiveMap();
|
self.startActiveMap();
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
_gaq.push(['_setAccount', 'UA-35984510-1']);
|
_gaq.push(['_setAccount', 'UA-55855180-1']);
|
||||||
_gaq.push(['_trackPageview']);
|
_gaq.push(['_trackPageview']);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ if (args.length <= 1) {
|
||||||
//configurable variables - CHANGE ME
|
//configurable variables - CHANGE ME
|
||||||
var mapID = args[1];
|
var mapID = args[1];
|
||||||
var environment = args[2];
|
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 url = address + '/maps/' + mapID;
|
||||||
var width = 940;
|
var width = 940;
|
||||||
var height = 630;
|
var height = 630;
|
||||||
|
|
Loading…
Reference in a new issue