# Workflow based on pageviews

**URL:** <https://community.hubspot.com/t/workflow-based-on-pageviews/45806>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows, professional\
**Created:** [October 22, 2021, 2:25pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806 "2021-10-22T14:25:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMat](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@MMat](https://community.hubspot.com/u/MMat)\
**Post date:** [October 22, 2021, 2:25pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806/1 "2021-10-22T14:25:33Z")

</div>

Hello HS community,

I want to create a workflow that does the following in order:

1. The user visits LP.  
2. Complete and send the form on LP (Contact enrollment trigger).  
2. Then he is redirected to the thank you page.  
3. If the user goes to any page after thank you page then set property value. If he doesn’t visit next page, nothing happens.

---

<div class="post-metadata">

**Author:** ![Josh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh/32/17115_2.png) [@Josh](https://community.hubspot.com/u/Josh)\
**Post date:** [October 22, 2021, 3:27pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806/2 "2021-10-22T15:27:38Z")

</div>

Hi @MMat,

There can be variations to this, but here’s what I would do…

- Steps 1 and 2 are your enrollment criteria
  - Or if your thank you page is only accessible from the form submission and not search, in theory, that could be your thank you page

- Set a delay until an event happens - A page is visited that contains your URL
  - Delay 1 minute - or more if you prefer

- Set Contact Property Value

 ![Screen Shot 2021-10-22 at 11.24.13 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/0/50d0f38a5f3dcf6507b5994930efb31d5cbcfe7a.png)

Hope this gets you on the right track!

Josh

---

<div class="post-metadata">

**Author:** ![MMat](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@MMat](https://community.hubspot.com/u/MMat)\
**Post date:** [October 22, 2021, 6:38pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806/3 "2021-10-22T18:38:46Z")

</div>

@Josh , thank you so much for your help! I would like this workflow to work retroactively on people who meet these criteria. Will it work? I wonder because we have “Delay until event happens” here.

---

<div class="post-metadata">

**Author:** ![Josh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh/32/17115_2.png) [@Josh](https://community.hubspot.com/u/Josh)\
**Post date:** [October 22, 2021, 6:46pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806/4 "2021-10-22T18:46:36Z")

</div>

Hi @MMat,

No, this won’t work retroactively. I’d have to think about how to make that happen. Is that vital?

---

<div class="post-metadata">

**Author:** ![MMat](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@MMat](https://community.hubspot.com/u/MMat)\
**Post date:** [October 22, 2021, 7:47pm UTC](https://community.hubspot.com/t/workflow-based-on-pageviews/45806/5 "2021-10-22T19:47:38Z")

</div>

@Josh yes, it is important to me, of course, if there is no such possibility, I will apply it only to new contacts
