How to add Google Analytics tracking to any PHP website

Here is a short howto how to make Google Analytics working with your PHP code: 1) Get Google Analytics account - 2) Add your webpage using wizard. 3) Create a file "analyticstracking.php" and insert following (marked in red) into the file: 4) Update all your .php files by adding this line: <?php include_once("analyticstracking.php") ?> right after the <body> tag in each .php file. 5) Profit! 🙂 Note: It might take some time before Read more [...]

How to force HTTPS on your website

I thought it might be useful to some of you to be able to enforce SSL version of your website for all guests since not everybody is using Firefox with addon "HTTPS Finder" even though I highly recommend it. ok here is the thing - you have to put .htaccess file in root of your website (usually where index.html or index.php is) and put inside following: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$$1 [R,L] For me it works flawlessly. Read more [...]