We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm using piwik with a webapp (Angular). I wanted to track pages but it didn't work.
Some urls:
foo.bar/#/home
foo.bar/#/search
foo.bar/#/login
foo.bar/#/login/register
With the dashboard Actions > Pages, I found only one url: /index 😕
Actions > Pages
The JS:
page: () => { console.log('Page url', location.href, arguments) tracker.setCustomUrl(location.href); tracker.trackPageView.apply(tracker, arguments); },
I tested with this:
tracker.setCustomUrl(escape(location.href)); tracker.setCustomUrl(encodeURIComponent(location.href));
but it didn't work too.
To make it works, I have to remove the #.
#
page: () => { console.log('Page url', location.href, arguments) tracker.setCustomUrl(location.href.replace('/#/', '/')); tracker.trackPageView.apply(tracker, arguments); },
Then I can find my pages as expected.
The text was updated successfully, but these errors were encountered:
Hi @dhoko
I just tested and it works for me fine with tracker.setCustomUrl(location.href);
tracker.setCustomUrl(location.href);
See how it looks in reports:
visitor log:
Sorry, something went wrong.
It still doesn't work. We were with the 2.14.2, with the 2.14.3 nop it still doesn't work.
2.14.2
2.14.3
Hi @dhoko,
Just to be sure..
Did you enable "Keep Page URL fragments when tracking Page URLs" like this FAQ shows: http://piwik.org/faq/how-to/faq_188/
It works ! \o/
Thank you
No branches or pull requests
Hi,
I'm using piwik with a webapp (Angular). I wanted to track pages but it didn't work.
Some urls:
foo.bar/#/home
foo.bar/#/search
foo.bar/#/login
foo.bar/#/login/register
With the dashboard
Actions > Pages
, I found only one url: /index 😕The JS:
I tested with this:
but it didn't work too.
To make it works, I have to remove the
#
.Then I can find my pages as expected.
The text was updated successfully, but these errors were encountered: