Recently I faced the issue to zoom to accommodate all markers in google map.In the google map, I included some polygons and lot of markers with landmarks and different locations.
Category » Google
Htaccess redirect www to non www. http & https
This article will provide you htaccess rules to redirect a www website to non www. I prefer to make rule regardless of using name of specific domain so no-where in this article I have used domain name. The general sort of solution to make www to non www apache htaccess redirect
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Non-www to www redirect. http & https in apache htaccess
For a better site optimization and accessibility we might wish to redirect a non-www site to www. For this we have to write a few rules in htaccess file at our apache server. I’m mentioning here code of just 3 lines to achieve non-www to www redirect.
Google Adwords Conversion with AJAX
I had a Google Adwords Conversion tracking code that I needed to implement basically on an onclick event. The form I am tracking, submits information using AJAX and then renders a ‘Thank you’ message to the page by replacing the form’s div with the ‘Thank you’ HTML.
Implementing Google reCaptcha in WordPress AJAX Register
Thanks to all visitors for their love to the article http://fellowtuts.com/wordpress/wordpress-ajax-login-and-register-without-a-plugin/. As we got many requests to implement Google reCaptcha in WordPress AJAX Register, I’m here with the wonderful code which will protect spams through Google reCaptcha during registration in your WordPress powered site.
Google New reCaptcha using PHP – Are you a Robot?
Recently Google introduced a simplified “captcha” verification system (video) that enables users to pass the “captcha” just by clicking on it. This API utilizes an Advanced Risk Analysis engine that is capable of discerning between users and bots
How to speed up page rendering
In website, speed up page rendering is very important factor. Because if our page speed is fast then visitors can visit more pages on our site and can take a glance easily. We have to make our web pages fast but it’s not too easy to optimize web pages at each and every scale.
Adding Google eCommerce Tracking Code for Events Manager Plugin
Events manager plugin is very good plugin for events management in WordPress powered websites. I wanted to track event booking after successful payment. I used events manager pro plugin for payment. I googled out to add Google eCommerce Tracking Code for Events Manager Plugin but did not find any solution. After all of these, I reviewed plugin code made some tweaks to resolve this. The Patch is stated here to benefit all of you as follows:
Open google map marker info window
In google map, we point the specific location based on it’s longitude and latitude and create a marker on that point. But If we want to show some information about that point, then we need to attach an info window with that marker which can be associated with marker’s hover or click event.
ga or _gaq in google analytics
ga and _gaq both are global object used for tracking in google analytics.
The _gaq global object can be used directly for asynchronous page tracking via the push(…) method.