# Task creation from multiple page views in the same day

**URL:** <https://community.hubspot.com/t/task-creation-from-multiple-page-views-in-the-same-day/62026>\
**Category:** Tips, Tricks & Best Practices\
**Created:** [July 29, 2022, 10:05pm UTC](https://community.hubspot.com/t/task-creation-from-multiple-page-views-in-the-same-day/62026 "2022-07-29T22:05:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottKiessig](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/scottkiessig/32/104913_2.png) [@ScottKiessig](https://community.hubspot.com/u/ScottKiessig)\
**Post date:** [July 29, 2022, 10:05pm UTC](https://community.hubspot.com/t/task-creation-from-multiple-page-views-in-the-same-day/62026/1 "2022-07-29T22:05:09Z")

</div>

If a contact is crawling our site and visits multiple pages in a single session, I would like to generate a task for a salesperson to reach out to them. I cannot figure out how to trigger it only when the multiple views are in the same 24 hr period. I can only find the option to do it on cumulative page views in their lifetime.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [July 30, 2022, 11:51am UTC](https://community.hubspot.com/t/task-creation-from-multiple-page-views-in-the-same-day/62026/2 "2022-07-30T11:51:38Z")

</div>

Hi @ScottKiessig,  
I think I found an option in the workflow you can test to see if it works better than the cumulative page views.

**Trigger:**

Page Views \> Contact has viewed at least one URL containing = (pick the main domain, like “hubspot” or narrow it down if you want to limit to specific types of content)

Refine by date = is less than 1 day ago

AND

Page Views \> Contact has viewed at least one URL containing = (pick the main domain, like “hubspot” or narrow it down if you want to limit to specific types of content)

Refine by number of times = 3 (you can pick any number)

It wouldn’t allow me to refine by date and page view, so I had to create with the “AND” function.

When I ran a test contact through, the person who visited our site 6 times in the last 24 hours passed the test.

As soon as they meet the criteria, they will be enrolled. Then you can set up the re-enrollment criteria to all them to re-enroll if you think they need to be contacted again, but my recommendation would be to set a delay (how many days are you giving sales to do their job) and some initial criteria using an IF/THEN branch before enrolling them in a second workflow - maybe the criteria has to be more strict for sales to be assigned the task again.

 ![workflow.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/9103db4f1184e3a7ccfedf4c39508484e25a389d.png)

Hope this helps get you on the path you’re looking for!

---

<div class="post-metadata">

**Author:** ![HSpeisman](https://avatars.discourse-cdn.com/v4/letter/h/db5fbb/32.png) [@HSpeisman](https://community.hubspot.com/u/HSpeisman)\
**Post date:** [September 13, 2023, 12:17am UTC](https://community.hubspot.com/t/task-creation-from-multiple-page-views-in-the-same-day/62026/3 "2023-09-13T00:17:06Z")

</div>

I was trying to create a similar trigger - however, using this logic…is it possible the contact could visit the the site 2 times before today and then when the visit the page “today” it would trigger since they have one visit less than 1 day ago AND they now have 3 web visits?
