Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment by "Page URL contains" does not work #19911

Open
bjornarhagen opened this issue Oct 26, 2022 · 1 comment
Open

Segment by "Page URL contains" does not work #19911

bjornarhagen opened this issue Oct 26, 2022 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@bjornarhagen
Copy link

We are collecting data from multiple domains/subdomains (example.com, subdomain-1.example.com, subdomain-2.example.com) into a single website/property in Matomo (self hosted instance).

If I look at Behaviour -> Pages I can see all the different page URLs.
I want to create some segments for the different domains/subdomains.
I've created a couple:

  • Segment 1: "Page URL" contains "subdomain-1.example.com"
  • Segment 2: "Page URL" contains "subdomain-2.example.com"

Expected Behavior

When I view Segment 1, I expect to only see page URLs that contain "subdomain-1.example.com", as that is how the segment is configured.

When I view Segment 2, I expect to only see page URLs that contain "subdomain-2.example.com", as that is how the segment is configured.

Current Behavior

When I view Segment 1, I see page URLs with example.com, subdomain-1.example.com and subdomain-2.example.com.

When I view Segment 2, I see page URLs with example.com, subdomain-1.example.com and subdomain-2.example.com.

Thus it seems the segmentation based on page URLs doesn't work as it should.

Possible Solution

Steps to Reproduce (for Bugs)

  1. Send data from multiple URLs into a website/property in Matomo
  2. Create a custom segment and configure it so that it only includes page urls that contain 1 spesific url
  3. Open the segment, it will now show page urls that are not supposed to be included as per the segment configuration.

Context

Your Environment

  • Matomo Version: 4.10.1
  • PHP Version: 8.0.20
  • Server Operating System: Linux
  • Additionally installed plugins: GoogleAnalyticsImporter
  • Browser:
  • Operating System:
@bjornarhagen bjornarhagen added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Oct 26, 2022
@bx80
Copy link
Contributor

bx80 commented Oct 26, 2022

Hi @bjornarhagen, thanks for reaching out.

You might need to include the subdomain name in the page title for this to work. This FAQ also has some more information about tracking multiple subdomains.

@bx80 bx80 added the answered For when a question was asked and we referred to forum or answered it. label Oct 26, 2022
@peterhashair peterhashair removed the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants