Fix track() when both name and properties params are passed, make sure the name param takes precendent over properties