My customer wants to track backend user's activity using google-analytics. He wants me to insert UserId in every URL of the backend. Backend is ASP.NET MVC3 and I tried to use routing for this purpose but without any luck.
I thought about more intellegent way to satisfy his need. So I'm thinking about calling google-analytics api from the server-side.
Is there an ability to do all that ga.js
does but from c#?
Updated: Customer wants to track user's activity using Google Analytics. He wants me to add ?userId= to all links in backend. So if I had /Category/Edit/123 now I have to change it to /Category/Edit/123?userId=456 Then I put ga.js to every page and customer tracks user's (456) activity.
I find the idea of using Google Analytics this way sucks but I have to implement some solution. The only thing I want is not to change urls but act with Google Analytics API from the server side.