Hello everyone
I’m using Matomo with the C#-Tracker, but without client side code. We want to avoid client side tracking, if it is possible. The requests are tracked, even the unique ID that we give each user is tracked and allows to identify unique visits, but we cannot see which pages the users have visited. This is our (simplified) code:
instance = new PiwikTracker( siteId, TrackingHost );
instance.DisableCookieSupport(); // Only Server Side tracking
var authToken = ConfigurationManager.AppSettings["trkToken"];
if (authToken != null)
instance.SetTokenAuth( authToken );
var page = umbracoHelper.AssignedContentItem;
if (page != null)
{
instance.SetUrl( page.Url() ); // This code gets executed
}
// anonymous member id
var memberString = Current.Factory.GetInstance<MembershipHelper>().GetCurrentMember()?.Key.ToString();
if (memberString != null)
instance.SetUserId( HashHelper.CreateSha256( memberString ).Substring( 0, 16 ) );
We made sure that instance.SetUrl(…) is called with the correct values.
Does anyone have an idea that could help me?
Regards
-mm
2 posts - 2 participants