Google Analytics client in web app
I have a web application where people can create custom content on the internet that is hosted by my service. I want to provide users with the ability to track activity on their specific page through Google Analytics. I have seen some other companies provide this option (MailChimp).
I was wondering if anyone has experience implementing such a solution and can point me in the right direction.
+2
a source to share
1 answer
Your app just needs to fix the google analytics code and their account id when their page is displayed. Perhaps you can allow users to enter the tracking ID in your account settings, then you can output the JavaScript tracking code provided by google analytics with the registered user ID.
+3
a source to share