{"action":"created","issue":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/422","labels_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/422/comments","events_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/422/events","html_url":"https://github.com/affiliatewp/AffiliateWP/issues/422","id":45936906,"number":422,"title":"Automatically enable Fallback Tracking Method if JS fails","user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/labels/Has%20PR","name":"Has PR","color":"bfe5bf"},{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/labels/needs%20testing","name":"needs testing","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"sumobi","id":52581,"avatar_url":"https://avatars.githubusercontent.com/u/52581?v=3","gravatar_id":"","url":"https://api.github.com/users/sumobi","html_url":"https://github.com/sumobi","followers_url":"https://api.github.com/users/sumobi/followers","following_url":"https://api.github.com/users/sumobi/following{/other_user}","gists_url":"https://api.github.com/users/sumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumobi/subscriptions","organizations_url":"https://api.github.com/users/sumobi/orgs","repos_url":"https://api.github.com/users/sumobi/repos","events_url":"https://api.github.com/users/sumobi/events{/privacy}","received_events_url":"https://api.github.com/users/sumobi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones/29","html_url":"https://github.com/affiliatewp/AffiliateWP/milestones/1.7","labels_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones/29/labels","id":926517,"number":29,"title":"1.7","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":31,"state":"open","created_at":"2015-01-08T02:39:33Z","updated_at":"2015-08-17T16:12:31Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-10-16T00:50:07Z","updated_at":"2015-08-18T03:51:02Z","closed_at":null,"body":"We should be able to cut down on the number of support requests from customers that have problems with tracking not working by automatically enabling the Fallback Tracking Method if JS fails.\r\n\r\nThe trick is detecting when JS is failing (usually due to a JS error).\r\n\r\nWe should be able to use the following method:\r\n\r\n1. During install, set an option in the database for `affwp_js_works` = `2`. `2` == JS doesn't work; `1` == JS works.\r\n2. When the site is loaded for the first time (frontend only), fire an ajax request. When this ajax request is processed successfully, we store update the option in the database to `1` to indicate that JS works. \r\n3. In the tracking class, we automatically use the Fallback Tracking method if it is enabled in Settings or `affwp_js_works` ha a value of `2`."},"comment":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/comments/132063770","html_url":"https://github.com/affiliatewp/AffiliateWP/issues/422#issuecomment-132063770","issue_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/422","id":132063770,"user":{"login":"sumobi","id":52581,"avatar_url":"https://avatars.githubusercontent.com/u/52581?v=3","gravatar_id":"","url":"https://api.github.com/users/sumobi","html_url":"https://github.com/sumobi","followers_url":"https://api.github.com/users/sumobi/followers","following_url":"https://api.github.com/users/sumobi/following{/other_user}","gists_url":"https://api.github.com/users/sumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumobi/subscriptions","organizations_url":"https://api.github.com/users/sumobi/orgs","repos_url":"https://api.github.com/users/sumobi/repos","events_url":"https://api.github.com/users/sumobi/events{/privacy}","received_events_url":"https://api.github.com/users/sumobi/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T03:51:02Z","updated_at":"2015-08-18T03:51:02Z","body":"@pippinsplugins works fine for me but I was expecting the checkbox to become enabled in the Misc tab if the ajax test failed."}}