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

Make URL paths more distinctive #259

Open
krista-ramakers opened this issue Feb 1, 2017 · 3 comments
Open

Make URL paths more distinctive #259

krista-ramakers opened this issue Feb 1, 2017 · 3 comments
Assignees
Labels

Comments

@krista-ramakers
Copy link

As analysing pageviews becomes more and more important for our clients, the question has risen whether it's possible to include, for example, the page category or content group in the URL. This might have multiple advantages:

  • It is easier to tell URL's apart and check if you are measuring the performance of the right page
  • It is easier to exclude/filter on specific pages in analytics (since you can only filter on (part of) URL's)

Can we discuss a possible solution for this issue? I expect this will only become more relevant in the future, for other customers too.

@Dirklectisch
Copy link
Contributor

I'm not sure if this is a good idea. It would change every existing URL in the site. I think Google Analytics has other ways of segmenting page views that we could use?

@ddeboer
Copy link
Member

ddeboer commented Feb 2, 2017

It would change every existing URL in the site.

Right. Additionally, we must prevent page URLs changing when their category is changed. While we can solve this by adding the category after the id, like http://example.com/en/page/346/text/groot-worden-in-een-grote-stad, that looks rather ugly.

And it is unnecessary. A simpler solution is just to change the ga('send', 'pageview', ...) calls to add additional details, such as the category, in the URL, relying on what Google calls virtual pageviews (for tracking SPAs).

@krista-ramakers
Copy link
Author

Sounds good! But is it comprehensive enough for the users of GA/Tag manager? How they can access the data of the specific pages they need?

@ddeboer ddeboer removed their assignment Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants