Commit 992e8dcd authored by Michael Dombrowski's avatar Michael Dombrowski

analytics update

parent 738c8e76
......@@ -41,7 +41,7 @@
"shortName": "Tide Aware",
"uuid": "7c9fbbd9-2a8b-4198-bf1b-fd786e0337d0",
"versionCode": 1,
"versionLabel": "3.8",
"versionLabel": "3.9",
"watchapp": {
"hiddenApp": false,
"watchface": false
......
var UI = require('ui');
var ajax = require('ajax');
var Settings = require('settings');
var version = '3.8';
var version = '3.9';
var menu;
var allTideData;
if(typeof localStorage.allTideData !== "undefined" && localStorage.allTideData !== null && localStorage.allTideData !== ""){allTideData = JSON.parse(localStorage.allTideData);}
......@@ -136,7 +136,7 @@ function getTides(zip, name) {
ajax(
{
url: 'http://mikedombrowski.com/analytics.php?location='+zip+'&US=TRUE&ID='+Pebble.getAccountToken()+'&settings='+encodeURIComponent(JSON.stringify(allTideData))+"&ver="+version
url: 'http://mikedombrowski.com/analytics/gather.php?location='+zip+'&US=TRUE&ID='+Pebble.getAccountToken()+'&settings='+encodeURIComponent(JSON.stringify(allTideData))+"&ver="+version
},
function(data){}, function(error){});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment