{ "id": "94782", "key": "TIMOB-9928", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13502", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 Core", "archived": true, "released": true, "releaseDate": "2012-07-15" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-21T05:30:44.000+0000", "created": "2012-07-10T14:31:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-12-21T05:30:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "MobileWeb : We are not getting any analytics events for mobileweb in browsers.\r\n\r\nEnvironment Tested on :\r\nTested On:\r\nTitanium studio : 2.1.0.201206251749\r\nSDK version : 2.1.0. GA\r\nChrome Browser : 20.0.1132.47\r\nFirefox Browser : 13.0.1\r\nTicloud : 2.1.0\r\n\r\nSteps to Reproduce:\r\n1. Make a default app in the studio.\r\n2. Copy the contents from \"/Users/user-name/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.1.0/examples\" to resources.\r\n3. Publish it for mobile web production.\r\n4. Type in the url to where you are hosting the mobile web app.\r\n5. Go to \"my.appcelerator.com\" & sign in with your credentials.\r\n6. Go to 'My apps'.\r\n7. Click on 'manage ACS' link against the app you published,where you can check whether users,photo collections etc are getting created from the app.\r\n8. Now execute various events like create users, emails ,photo collections etc in the app.\r\n9. Wait till the analytics cron job has been run.\r\n10.Now click on 'view analytics' link next to your app in 'my.appcelerator.com'.\r\n\r\n\r\nActual Result:\r\n1. We do not see any ACS analytics events.\r\n\r\n\r\nExpected Result:\r\n1. We should be able to see the ACS analytics events.\r\n\r\n\r\n", "attachment": [ { "id": "29156", "filename": "app.js", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-07-10T21:59:10.000+0000", "size": 1835, "mimeType": "application/x-javascript" }, { "id": "29144", "filename": "Screen Shot 2012-07-10 at 2.56.11 PM.png", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T15:01:31.000+0000", "size": 139795, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Analytics: Need to set: Ti.Platform.id Ti.App.guid Ti.App.deployType Ti.App.sessionId", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "202461", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Lokesh, what is the GUID of the app?\r\n", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T16:29:59.000+0000", "updated": "2012-07-10T16:29:59.000+0000" }, { "id": "202472", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi chung the guid is 034448cf-d605-4d29-81b2-71d795f99bae .", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T16:52:20.000+0000", "updated": "2012-07-10T16:52:20.000+0000" }, { "id": "202489", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Raw events don't include any ACS events.\r\n\r\n\r\nroot@ip-10-92-58-173:/mnt/mysqltmp/2012-07-09-raw-mobile# grep 034448cf-d605-4d29-81b2-71d795f99bae *\r\n{\"id\":\"27811A4B-621E-4C36-A9DB-A1E01A07547B\",\"mid\":\"634293E4-CE5E-48C2-8FD3-C9B90B40F378\",\"rdu\":null,\"type\":\"ti.enroll\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.enroll\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"5F0FF8C6-14F9-4EC9-9B67-DE08ADFADF49\",\"ts\":\"2012-07-09T21:45:08.691+0000\",\"data\":\"{\\\"app_name\\\":\\\"ACS_prod_test\\\",\\\"oscpu\\\":1,\\\"mac_addr\\\":null,\\\"deploytype\\\":\\\"production\\\",\\\"ostype\\\":\\\"mobileweb\\\",\\\"osarch\\\":null,\\\"app_id\\\":\\\"com.appcelerator.acs\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko\\/20100101 Firefox\\/13.0.1\\\"}\"}\r\n{\"city\":\"Mountain View\",\"region_code\":\"CA\",\"country_code\":\"US\",\"country_name\":\"United States\",\"postal_code\":\"\",\"latitude\":37.397399902344,\"longitude\":-122.07319641113,\"area_code\":650,\"continent_code\":\"NA\",\"ip_address\":\"38.99.10.124\",\"region_name\":\"California\",\"id\":\"9A0190EE-990C-4F03-B142-E778C66F6079\",\"mid\":\"634293E4-CE5E-48C2-8FD3-C9B90B40F378\",\"rdu\":null,\"type\":\"ti.start\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.start\",\"seq\":1,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"5F0FF8C6-14F9-4EC9-9B67-DE08ADFADF49\",\"ts\":\"2012-07-09T21:45:08.693+0000\",\"data\":\"{\\\"tz\\\":420,\\\"deploytype\\\":\\\"production\\\",\\\"os\\\":\\\"mobileweb\\\",\\\"osver\\\":\\\"MacIntel\\\",\\\"version\\\":\\\"2.1.0.GA\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko\\/20100101 Firefox\\/13.0.1\\\",\\\"un\\\":null,\\\"app_version\\\":\\\"1.0\\\",\\\"nettype\\\":null}\"}\r\n{\"id\":\"C4BC4AC7-9EB7-4845-AB8D-065C4A9854AA\",\"mid\":\"77C2DE8D-D73C-44BC-B741-DF7374C9E68C\",\"rdu\":null,\"type\":\"ti.enroll\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.enroll\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"6F9E467E-CC70-4F62-9E06-5EEA58B2D0DE\",\"ts\":\"2012-07-09T22:31:30.438+0000\",\"data\":\"{\\\"app_name\\\":\\\"ACS_prod_test\\\",\\\"oscpu\\\":1,\\\"mac_addr\\\":null,\\\"deploytype\\\":\\\"production\\\",\\\"ostype\\\":\\\"mobileweb\\\",\\\"osarch\\\":null,\\\"app_id\\\":\\\"com.appcelerator.acs\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit\\/534.54.16 (KHTML, like Gecko) Version\\/5.1.4 Safari\\/534.54.16\\\"}\"}\r\n{\"id\":\"2293F397-73AD-4CA0-A0A1-6155DC6FFD7F\",\"mid\":\"634293E4-CE5E-48C2-8FD3-C9B90B40F378\",\"rdu\":null,\"type\":\"ti.end\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.end\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"13D83487-073C-458B-AF8E-D838B9D44471\",\"ts\":\"2012-07-09T22:34:07.448+0000\"}\r\n{\"city\":\"Mountain View\",\"region_code\":\"CA\",\"country_code\":\"US\",\"country_name\":\"United States\",\"postal_code\":\"\",\"latitude\":37.397399902344,\"longitude\":-122.07319641113,\"area_code\":650,\"continent_code\":\"NA\",\"ip_address\":\"38.99.10.124\",\"region_name\":\"California\",\"id\":\"144F39C4-8DC4-45EA-804B-3E0FCE0EBD4A\",\"mid\":\"634293E4-CE5E-48C2-8FD3-C9B90B40F378\",\"rdu\":null,\"type\":\"ti.start\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.start\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"B9BCC08A-6430-4EEC-B6F6-98592554B078\",\"ts\":\"2012-07-09T22:34:09.141+0000\",\"data\":\"{\\\"tz\\\":420,\\\"deploytype\\\":\\\"production\\\",\\\"os\\\":\\\"mobileweb\\\",\\\"osver\\\":\\\"MacIntel\\\",\\\"version\\\":\\\"2.1.0.GA\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko\\/20100101 Firefox\\/13.0.1\\\",\\\"un\\\":null,\\\"app_version\\\":\\\"1.0\\\",\\\"nettype\\\":null}\"}\r\n{\"id\":\"9B0B487B-0554-4D51-B307-8C0705B62DA3\",\"mid\":\"89D7FFA6-F8C5-45C4-B73E-9F39203BE538\",\"rdu\":null,\"type\":\"ti.enroll\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.enroll\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"84D4E78D-DF95-4A2C-BDFA-C75F2759276C\",\"ts\":\"2012-07-09T21:37:49.916+0000\",\"data\":\"{\\\"app_name\\\":\\\"ACS_prod_test\\\",\\\"oscpu\\\":1,\\\"mac_addr\\\":null,\\\"deploytype\\\":\\\"production\\\",\\\"ostype\\\":\\\"mobileweb\\\",\\\"osarch\\\":null,\\\"app_id\\\":\\\"com.appcelerator.acs\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit\\/536.11 (KHTML, like Gecko) Chrome\\/20.0.1132.47 Safari\\/536.11\\\"}\"}\r\n{\"city\":\"Mountain View\",\"region_code\":\"CA\",\"country_code\":\"US\",\"country_name\":\"United States\",\"postal_code\":\"\",\"latitude\":37.397399902344,\"longitude\":-122.07319641113,\"area_code\":650,\"continent_code\":\"NA\",\"ip_address\":\"38.99.10.124\",\"region_name\":\"California\",\"id\":\"9C2DDD66-B7A2-4EE3-AFE8-D93017AD5422\",\"mid\":\"89D7FFA6-F8C5-45C4-B73E-9F39203BE538\",\"rdu\":null,\"type\":\"ti.start\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.start\",\"seq\":1,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"84D4E78D-DF95-4A2C-BDFA-C75F2759276C\",\"ts\":\"2012-07-09T21:37:49.921+0000\",\"data\":\"{\\\"tz\\\":420,\\\"deploytype\\\":\\\"production\\\",\\\"os\\\":\\\"mobileweb\\\",\\\"osver\\\":\\\"MacIntel\\\",\\\"version\\\":\\\"2.1.0.GA\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit\\/536.11 (KHTML, like Gecko) Chrome\\/20.0.1132.47 Safari\\/536.11\\\",\\\"un\\\":null,\\\"app_version\\\":\\\"1.0\\\",\\\"nettype\\\":null}\"}\r\n{\"id\":\"1837EB80-18C6-4385-A653-6D0A8E2915A3\",\"mid\":\"89D7FFA6-F8C5-45C4-B73E-9F39203BE538\",\"rdu\":null,\"type\":\"ti.end\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.end\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"4CC93D0C-E194-4C1E-8DB3-8B11A0206E3B\",\"ts\":\"2012-07-09T22:43:47.359+0000\"}\r\n{\"city\":\"Mountain View\",\"region_code\":\"CA\",\"country_code\":\"US\",\"country_name\":\"United States\",\"postal_code\":\"\",\"latitude\":37.397399902344,\"longitude\":-122.07319641113,\"area_code\":650,\"continent_code\":\"NA\",\"ip_address\":\"38.99.10.124\",\"region_name\":\"California\",\"id\":\"55F0C480-3541-49AC-B648-7CF9FF92CD0D\",\"mid\":\"89D7FFA6-F8C5-45C4-B73E-9F39203BE538\",\"rdu\":null,\"type\":\"ti.start\",\"aguid\":\"034448cf-d605-4d29-81b2-71d795f99bae\",\"event\":\"ti.start\",\"seq\":0,\"ver\":\"2\",\"deploytype\":\"production\",\"sid\":\"99EE0879-9739-489E-833C-D5F029EB2E61\",\"ts\":\"2012-07-09T22:43:49.771+0000\",\"data\":\"{\\\"tz\\\":420,\\\"deploytype\\\":\\\"production\\\",\\\"os\\\":\\\"mobileweb\\\",\\\"osver\\\":\\\"MacIntel\\\",\\\"version\\\":\\\"2.1.0.GA\\\",\\\"platform\\\":\\\"mobileweb\\\",\\\"model\\\":\\\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit\\/536.11 (KHTML, like Gecko) Chrome\\/20.0.1132.47 Safari\\/536.11\\\",\\\"un\\\":null,\\\"app_version\\\":\\\"1.0\\\",\\\"nettype\\\":null}\"}\r\nroot@ip-10-92-58-173:/mnt/mysqltmp/2012-07-09-raw-mobile# \r\n\r\n", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T17:42:27.000+0000", "updated": "2012-07-10T17:42:27.000+0000" }, { "id": "202492", "author": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From https://github.com/appcelerator-modules/ti.cloud/blob/master/commonjs/src/ti.cloud.js\r\n\r\n{code}\r\n\r\nfunction injectAnalytics(data, url) {\r\n if (Ti.App.analytics) {\r\n var obj = data.analytics || {};\r\n obj.id = Ti.Platform.createUUID();\r\n if (Ti.Platform.id) {\r\n obj.mid = Ti.Platform.id;\r\n }\r\n obj.aguid = Ti.App.guid;\r\n obj.event = 'cloud.' + url.replace(/\\//g, '.').replace(/\\.json/, '');\r\n obj.deploytype = Ti.App.deployType || 'development';\r\n obj.sid = Ti.App.sessionId;\r\n data['ti_analytics'] = JSON.stringify(obj);\r\n }\r\n }\r\n\r\n{code}\r\n\r\nNeed to set:\r\nTi.Platform.id\r\nTi.App.guid\r\nTi.App.deployType\r\nTi.App.sessionId\r\n", "updateAuthor": { "name": "cliu", "key": "cliu", "displayName": "Chung Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T18:02:52.000+0000", "updated": "2012-07-10T18:03:19.000+0000" }, { "id": "202513", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2535", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-07-10T21:58:48.000+0000", "updated": "2012-07-10T21:58:48.000+0000" }, { "id": "203030", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "2.1.1 backport PR: https://github.com/appcelerator/titanium_mobile/pull/2550", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T14:18:04.000+0000", "updated": "2012-07-12T14:18:04.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }