{"action":"created","issue":{"url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/79","labels_url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/79/comments","events_url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/79/events","html_url":"https://github.com/padams/Open-Web-Analytics/issues/79","id":76993403,"number":79,"title":"Heatmap overlay does not work","user":{"login":"Seppe0021","id":12471156,"avatar_url":"https://avatars.githubusercontent.com/u/12471156?v=3","gravatar_id":"","url":"https://api.github.com/users/Seppe0021","html_url":"https://github.com/Seppe0021","followers_url":"https://api.github.com/users/Seppe0021/followers","following_url":"https://api.github.com/users/Seppe0021/following{/other_user}","gists_url":"https://api.github.com/users/Seppe0021/gists{/gist_id}","starred_url":"https://api.github.com/users/Seppe0021/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seppe0021/subscriptions","organizations_url":"https://api.github.com/users/Seppe0021/orgs","repos_url":"https://api.github.com/users/Seppe0021/repos","events_url":"https://api.github.com/users/Seppe0021/events{/privacy}","received_events_url":"https://api.github.com/users/Seppe0021/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-16T09:31:29Z","updated_at":"2015-05-16T13:59:21Z","closed_at":null,"body":"I'm using OWA and when I open the heatmap overlay of a page,no dots are shown.\r\nNot even when I click on the \"play\" button in the top right corner.\r\nIt simply does not seem to work.\r\nShould I ad something to my code? ( I found this in the wiki:To create a heatmap:\r\n//create the object\r\nvar heatmap = new owa.heatmap();\r\nheatmap.generate(); \r\nIf I have to ad something to my code , where should I put it?\r\nEven more helpful would be if someone could give me the example code\r\nOr is there an other reason why it does not work for me?\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/comments/102630895","html_url":"https://github.com/padams/Open-Web-Analytics/issues/79#issuecomment-102630895","issue_url":"https://api.github.com/repos/padams/Open-Web-Analytics/issues/79","id":102630895,"user":{"login":"pratham2003","id":1782226,"avatar_url":"https://avatars.githubusercontent.com/u/1782226?v=3","gravatar_id":"","url":"https://api.github.com/users/pratham2003","html_url":"https://github.com/pratham2003","followers_url":"https://api.github.com/users/pratham2003/followers","following_url":"https://api.github.com/users/pratham2003/following{/other_user}","gists_url":"https://api.github.com/users/pratham2003/gists{/gist_id}","starred_url":"https://api.github.com/users/pratham2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratham2003/subscriptions","organizations_url":"https://api.github.com/users/pratham2003/orgs","repos_url":"https://api.github.com/users/pratham2003/repos","events_url":"https://api.github.com/users/pratham2003/events{/privacy}","received_events_url":"https://api.github.com/users/pratham2003/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T13:59:21Z","updated_at":"2015-05-16T13:59:21Z","body":"Okay.\r\nOWA just records clicks in owa_clicks and uses javascript to plot those clicks on the overlay using ajax, javascript and html's canvas to generate the heatmap. So there is nothing missing.\r\n\r\nBtw, I forgot to ask, which browser are you using or have tried using? Try Firefox if you haven't already.\r\n\r\nCan you also open the web inspector and look for any possible errors in the console tab?\r\nhttps://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Open_the_Inspector\r\n\r\nIf there are no errors there then run the following query to get a list of URLs along with the number of recorded clicks for that URL to find out if there is actually any clicks which were recorded. (If there is lot of data the query might take some time to finish executing)\r\n\r\nSELECT a.id, count(b.id) as 'No. of clicks', url  FROM owa_document as a LEFT JOIN owa_click as b ON a.id = b.document_id GROUP BY a.id ORDER BY `No. of clicks` DESC\r\n\r\nor to find a count for a specific URL you can get the URL from the query which you ran earlier (the one you mentioned in your last message) and replace the INSERT_YOUR_URL_HERE in the following query with the actual URL (it must match exactly).\r\n\r\nSELECT id, count(id) 'Number of clicks' FROM owa_click WHERE document_id = (SELECT id FROM owa_document WHERE url = \"INSERT_YOUR_URL_HERE\");"}}