Jul 26, 2018
Sep 18, 2018
Closed, Fixed
Steps to reproduce
1. Configure tracking on the AlloyMVC site.
2. Browse the site.
3. Get the trackevent in the store.
Expected:
trackevent displays
Actual:
No trackevent displays
Note: The error in the log file is
2018-07-26 14:19:58,550 [43] ERROR EPiServer.Tracking.Core.TrackingValidation: Tracking remote address is required
2018-07-26 14:19:58,574 [43] ERROR EPiServer.Tracking.Core.TrackingValidation: Tracking data remote address does not contain valid IP address
2018-07-26 14:20:02,994 [47] ERROR EPiServer.Profiles.Client.ProfileTrackingAdapter: tracking of data ({"trackId":null,"deviceId":"7f98f70d-cebf-4cc6-8921-273056b2daea","scope":"myScope","eventType":"StartPage","value":"sample-value","pageUri":"http://localhost:56106/","pageTitle":"Alloy - collaboration, communication and project management online","user":{"name":"","email":"","information":
,"info":{"website":"http://a-website.com","facebook":"http://facebook.com/a-fakeid"}},"eventTime":null,"payload":{"value1":"Home Value 1","value2":"Home Value 2","value3":"Home Value 3","user":{"name":"","email":"","information":
{"website":"http://a-website.com","facebook":"http://facebook.com/a-fakeid"},"info":
{"website":"http://a-website.com","facebook":"http://facebook.com/a-fakeid"}}},"remoteAddress":null}) failed. Bad Request (BadRequest)
Expected: The remote address should not be required when configuring tracking. The current IP will be kept if the remote address is not configured.
Workaround: Just add RemoteAddress:"" into the code, and the trackevent is logged, but it would affect the current customers.