code format
affiliates tracking fix
code format
added affiliates tracking settings