How do I track file downloads

The funny thing is I wrote a php media gallery for all my musics 2 days ago. I had a similar problem. I’m using http://musicplayer.sourceforge.net/ for the player. And the playlist is built via php. All music requests go to a script called xfer.php?file=WHATEVER $filename = base64_url_decode($_REQUEST[‘file’]); header(“Cache-Control: public”); header(‘Content-disposition: attachment; filename=”.basename($filename)); header(“Content-Transfer-Encoding: binary”); header(“Content-Length: … Read more

Best place to insert the Google Analytics code [duplicate]

Google used to recommend putting it just before the </body> tag, because the original method they provided for loading ga.js was blocking. The newer async syntax, though, can safely be put in the head with minimal blockage, so the current recommendation is just before the </head> tag. <head> will add a little latency; in the … Read more

What is the difference between google tag manager and google analytics?

Google Analytics‘ main job is really just generating the reports and statistics about your website, like how many people saw your website yesterday, what web browser they used, which pages were the most popular, etc. The only way it can know this stuff is if you put a “tag” on all of your pages. The … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)