This article gives you code and instructions to create a custom shortcode that can be used with the WP-Members User Tracking extension. It will display the last X number of pages the user visited. This can be useful for creating user dashboards on the User Profile shortcode page. (You can see an example of how it is used here.)
Note: you must have the WP-Members User Tracking extension installed to use this shortcode.