How to track page views on Facebook instant article using GA UTM

Content publishers are busy building chatbots — yet another medium for the users to consume content using Facebook Messenger. Most publishers already track total number of page views on their Instant Articles using Google Analytics. This is how to track IA page views on GA: <figure class=”op-tracker”> <iframe hidden> <script> (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘YOUR_GA_ID’, ‘auto’); ga(‘send’, […]

Read More

Prevent rendering your page inside an iframe using X-Frame-Options

Setting the reponse header: X-Frame-Options to DENY or SAMEORIGIN will prevent your page to be displayed in another site and will prevent most clickjacking attacks DENY <br/> will prevent your page completely from being displayed in an iframe.</br> php example: <?php header(‘X-Frame-Options: DENY’); ?> SAMEORIGIN <br/> will prevent you page from being displayed in other sites (in our case to allow displaying your […]

Read More

How to add a remote database connection for other server

Remote Connections Mysql Ubuntu To expose MySQL to anything other than localhost you will have to have the following line For mysql version 5.6 and below uncommented in /etc/mysql/my.cnf and assigned to your computers IP address and not loopback For mysql version 5.7 and above uncommented in /etc/mysql/mysql.conf.d/mysqld.cnf and assigned to your computers IP address […]

Read More

How to watch or download Hotstar videos in Linux Mint (Ubuntu) via VLC

Hotstar.com is the popular online video streaming portal for cricket, TV serials and movies in India. It provides free and subscription based service to it’s customer. Hotstar works well inside Windows browser but it hasn’t taken care of Linux distributions like Linux Mint or Ubuntu. In Linux Mint or Ubuntu, you can open the website […]

Read More

How To Import and Export Databases and Reset a Root Password in MySQL

How to Import and Export Databases Export To Export a database, open up terminal, making sure that you are not logged into MySQL and type, mysqldump -u [username] -p [database name] > [database name].sql The database that you selected in the command will now be exported to your droplet. Import To import a database, first […]

Read More