User talk:Dantman/Analytics integration

can you post how your GA code for localsettings looks like as a whole with your security code ideas implemented? I am unsure where and how to arrange the code in that regard. thanks!