Customizing URL for SPA page views

Hello,

Is there a way to change the page url (ie. setCustomUrl) so that it affects automatic SPA tracking? I’ve tried using setCustomUrl before the SPA tracking triggers but it doesn’t seem to affect it.

Side note, the reason for this is that we are having an issue with the case sensitivity of the Page Url dimension in reports (the same url is appearing multiple times). If there is a way to use this dimension without it being case sensitive please let me know.

Thanks!
Phil

Hi there!

For this, you would need to manually track page views with changed URLs. I think this article may help you out: How can I track a single-page application (manual method)? | Piwik PRO help center. It contains an example of using the setCustomUrl method before page view happens.

Unfortunately, the data that was already tracked can’t be changed or aggregated.