You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Great bug report, thanks! We can improve this regex which is also currently used in optOut.js. I will put it in the queue for prioritisation by the product team.
I experienced, that the tracked hostname was wrong when query parameters are provided, which include the @ (at) symbol.
Expected Behavior
hostname is extracted correctly from href / url
Current Behavior
string after last @-sign is treated as domain name
Possible Solution
fix the RegExp in piwik.js
Steps to Reproduce (for Bugs)
To reproduce, I copied the getHostName function from piwik.js into seperate file:
output should IMO always be 'www.example.org'
node hostname.js
Context
Your Environment
The text was updated successfully, but these errors were encountered: