Web transaction logs

What are Web transaction logs, and how do they work in combination with registration forms, shopping cart databases, and tracking files to help firms understand how customers behave online?