Put in checks for polylang functions as per plugin author's recommendations

Signed-off-by: Stephen Elford <steve@trafficwebsites.co.uk>
Added Google Analytics

Signed-off-by: Stephen Elford <steve@trafficwebsites.co.uk>