{"id":16809381,"url":"https://github.com/alias-mac/uxmetrics","last_synced_at":"2025-03-17T09:43:53.673Z","repository":{"id":7790574,"uuid":"9160621","full_name":"alias-mac/UXMetrics","owner":"alias-mac","description":"UXMetrics module for SugarCRM","archived":false,"fork":false,"pushed_at":"2013-04-05T22:09:01.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T10:01:54.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alias-mac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-02T02:22:14.000Z","updated_at":"2014-12-16T12:32:33.000Z","dependencies_parsed_at":"2022-07-19T12:58:15.063Z","dependency_job_id":null,"html_url":"https://github.com/alias-mac/UXMetrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alias-mac%2FUXMetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alias-mac%2FUXMetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alias-mac%2FUXMetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alias-mac%2FUXMetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alias-mac","download_url":"https://codeload.github.com/alias-mac/UXMetrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244012772,"owners_count":20383656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:01:54.324Z","updated_at":"2025-03-17T09:43:53.638Z","avatar_url":"https://github.com/alias-mac.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UXMetrics\n\nModule to help tracking if we are doing our job well :)\n\n## Install\n\nUnzip the `UXMetrics.zip` file into the sugarcrm folder.\n(We'll improve this by using the module loader ;))\n\nIf you unzip it before installing, then it works out of the box, if is after, \nthen you need to run Quick Repair and Rebuild from the Administration panel and \nmake sure to run any SQL that you are prompted to execute at the end of the repair\nprocess.\n\n## Usage\n\nSince we don't support the include of js files from the modules directly, for \nnow you'll have the create another JS file that will be included on the `sidecar.tpl`. \nWe'll try to make this work in a smoother way using the install out of the box.\n\nThe script will need to call these kind of functions anywhere on the application, \nbased on the events that it listens too (e.g. any mouse click).\n\n```javascript\n// To search for an entry (whatever is unique for you)\nApp.api.records('read', 'UXMetrics', null, {\n    filter: [\n        {email_addr: 'test@test.com'},\n        {type: 4}\n    ]\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n\n// To create records at will :)\nApp.api.records('create', 'UXMetrics', null, {\n    email_addr: 'test@test.com',\n    name: 'Vlad K',\n    type: 4,\n    clicks: 5,\n    time: 45.32\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n\n// you can now check that the record was saved\nApp.api.records('read', 'UXMetrics', null, {\n    filter: [{\n        email_addr: 'test@test.com'\n    }]\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n\n// now imagine that you create 2 other records\nApp.api.records('create', 'UXMetrics', null, {\n    email_addr: 'test@test.com',\n    name: 'Vlad K',\n    type: 2,\n    clicks: 5,\n    time: 45.32\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\nApp.api.records('create', 'UXMetrics', null, {\n    email_addr: 'test@test.com',\n    name: 'Vlad K',\n    type: 3,\n    clicks: 5,\n    time: 45.32\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n\n// you can now see the 3 records for that user\nApp.api.records('read', 'UXMetrics', null, {\n    filter: [{\n        email_addr: 'test@test.com'\n    }]\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n\n// or you can see only for the test that you are looking for:\nApp.api.records('read', 'UXMetrics', null, {\n    filter: [\n        {email_addr: 'test@test.com'},\n        {type: 3}\n    ]\n}, {\n    success: function(data) {\n        console.log(data);\n    },\n    error: function() {\n        // see if you want to do something here...\n    }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falias-mac%2Fuxmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falias-mac%2Fuxmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falias-mac%2Fuxmetrics/lists"}