"Viewed Page" Segment Technique

  • 7 December 2023
  • 4 replies
  • 77 views

Userlevel 2
Badge +6

I’m looking for a way to build a segment based on whether someone viewed any page including (www.brand.com/folder1/) so that it includes User who viewed it and all other extensions of that URL.

When I use my Viewed Page filter, it forces me to choose an exact URL, rather than using a includes statement.

The logic could be [Viewed Page] when [url] includes [www.brand.com/folder1]

Rather than

[Viewed Page] when [url] is [www.brand.com/folder1]

 

How do I get around this limitation?

 


4 replies

Userlevel 2
Badge +6

No. I don’t have contains or starts with as options.

 

 

Userlevel 7
Badge +29

HI @Andrew.Walters 

Ok, that’s great news! So, if you are already receiving the URL (I wanted to make sure), then you should be able to configure your logic to:

[Viewed Page] when [URL] contains [www.brand.com/folder1]

Alternatively, you could use:

[Viewed Page] when [URL] starts with [www.brand.com/folder1]

This will then pull in anyone who has viewed a page with your root domain and subfolder 1.

I hope that helps!

@In the Inbox 

Userlevel 2
Badge +6

I have one parameter in the Viewed Page event, it’s url.

 

Are you suggesting a rename the url parameter to viewedPageUrl?

Userlevel 7
Badge +29

Hi @Andrew.Walters 

Thank you for posting your question in the community! 

In order to set up the logic the way you’ve described, you need to be sure the Viewed Page event is passing back the parameter viewedPageUrl vs. just the page name, for example. 

Once you are receiving the actual page URL the contact viewed, you should be able to configure the filter using any of the following conditions:

 

I hope this helps! If you have any other questions, please don’t hesitate to let us know!

@In the Inbox 

Reply