If you want to create a segment based on the last page viewed by the user, this tutorial is perfect for you. It's an easy process.
First, go on your Contacts tab and create a new segment to Build your custom audience.
To create a segment based on the URL, you need to use one of the default attributes we offer automatically: Last Page Viewed
Add your first condition by clicking on the Create Filters button
Select Property: Last Page Viewed
The Condition should be: Contains
The value is your URL or a part of it: For eg. "create-a-segment-based-on-page-viewed"
Add the filter and Save your custom audience based on this page now 🙂