Neil Knight
Neil Knight

Reputation: 48537

Google Analytics and MVC?

I'm after a bit of guidance 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?

Upvotes: 1

Views: 579

Answers (2)

Rob
Rob

Reputation: 10248

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.

Upvotes: 1

rcravens
rcravens

Reputation: 8390

I put mine in the master page. Everything is hunky-dory.

Upvotes: 2

Related Questions