I have a website with 2 domains, let say domain1.com(English) and domain2.se(Swedish). Same content but different languages.
On Google analytics I have this:
-Domain1/Domain2 (Account)
--Domain1 (UA-123456789-1) (Property)
--Domain2 (UA-123456789-2) (Property)
Is that correct to create 2 property, one for each domain?
Now, I want to track visitors on user profile pages. For example, a user visit /user/test and then I want to send the username or user id to google analytics. Later I will see how many visits each profiles has, and I want to get specific profile visits between specific dates. It should not matter if you visit domain1.com/user/test or domain2.se/user/test. I want to get the total number of visits on the profile. Is this possible to do with google analytics or should I use another tool(free) for that? Now, I store the visits in my own db, but I think there is a better way to do this?
This is what i have:
<script type="text/javascript">
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments);
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', '[ANALYTICSIDFORCURRENTDOMAIN]', '[CURRENTDOMAIN]');
ga('send', 'pageview');
</script>
So,
How can I track visits on a profile page?
How can I receive how many visits this profile page has?