Not able to write to database

Apologies for the issue if it seems trivial, but somehow i find it strange because it doesn’t work for me.

My Case →
i have successfully installed the tables in a local database, and added the tracking code to my website as well.

<!DOCTYPE html>
<html>
<head>
	<title></title>

<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//localhost/piwik/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>

</head>
<body>
		HELLO, THIS IS A TESTING FILE FOR PIWIK.
</body>
</html>

The above is the code i am using to test the tracking feature. But after reloading this page, my dashboard doesn’t get updated. Infact, no tables are written in the database as well.

When I check, the url in Manage websites location, the link correctly points out to the test file.


Here is the response of the test file.

Gist-> After refreshing, no data written to database.
Can anyone help me out? What am i doing wrong here?