I'm after a bit of guidanc开发者_高级运维e as to where to put the GA code. Do I just put this into the Site.Master file and everything will be hunky-dory? Or do I need to implement it in each View?
I put mine in the master page. Everything is hunky-dory.
Put it in the master page. Consider putting it in a separate placeholder so if need be you can override it in a view to turn it off. You should also put it at the bottom so it loads last.
精彩评论