Web usage mining is the process of extracting interesting patterns from web logs. This paper proposes an IPA (Integrating Path traversal patterns and Association rules) model for web usage mining in the EC (Electronic Commerce) environment. The IPA model takes both the traveling and purchasing behaviors of customers into consideration at the same time to overcome the disadvantages of the pure association rule mining and pure path traversal pattern mining. The IPA model considers not only user traversal forward information but also backward information. Besides, web structure is also used in this paper to prune unnecessary candidates. Especially, the IPA model allows the noise exist in web transactions. The experimental results show that the IPA model can correctly capture the user's traversing and purchasing behaviors.