Added protocol check for Google analytics