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.Dismiss alert
If someone want to try to access the application (Shlink) directly he may want to call https://l.domain.tld but gets redirected by Shlink to the base_url.
This redirect does not get tracked by default as it does not exist in the DB.
I would love to see this redirect (if enabled) beeing added to Shlink by default. But not like the other Links. So you can not edit/delete it but analyse and track it.
I know its a bit strange request but would love to see how many people try to "bypass" Shlink this way, or how many are getting redirected by this setting.
Same would be cool for 404 errors as they get redirected to www.domain.tld/404.
Would be cool if they also would be tracked. Also what the "not existing" request was.
If I call https://l.domain.tld/not-existing-thing then this should be added to the 404 redirects but should contain the url so we know what was called but did not exist.
Create architectural decision record.
Update visits table to allow null short_url_id and save visited_url and type.
Track orphan visits.
Add amount of orphan visits to GET /visits endpoint.
Create new GET /visits/orphan endpoint for orphan visits. It should behave the same as the one for short URL visits or tag visits, supporting pagination, filtering etc.
Add location resolution via events as for short URL visits.
Ensure IP address is properly resolved for base_url and regular_404 visits.
A new endpoint will be created to return visits of this kind in the same way it's done with visits for a short code or visits for a tag.
acelaya
changed the title
Also track the redirect from 'hostname' to 'base_url' and also to '404'
Track visits to 'base_url', 'invalid_short_url' and 'regular_404'
Feb 7, 2021
acelaya
changed the title
Track visits to 'base_url', 'invalid_short_url' and 'regular_404'
Track visits to 'base_url', 'invalid_short_url' and 'regular_404' (orphan visits)
Feb 9, 2021
@MartinHotmann I have just merged the implementation for this, and it will be part of Shlink 2.6.0
Shlink will start tracking "orphan visits", meaning, visits to the base URL, invalid short URLs or any other kind of not found error. It will do it both if you configured a redirect for any of thos 3 cases or not.
You will be able to opt-out via config, if you want, but it will be enabled by default.
After v2.6.0 is released, I will start working on shlink-web-client 3.1.0, which will add support to see orphan visits.
It took almost a year to get this implemented, but the result is going to worth it 🙂
I configured Shlink this way:
hostname: l.domain.tld
base_url: www.domain.tld (website)
So my Links look like this:
https://l.domain.tld/GPSI (for example)
If someone want to try to access the application (Shlink) directly he may want to call https://l.domain.tld but gets redirected by Shlink to the base_url.
This redirect does not get tracked by default as it does not exist in the DB.
I would love to see this redirect (if enabled) beeing added to Shlink by default. But not like the other Links. So you can not edit/delete it but analyse and track it.
I know its a bit strange request but would love to see how many people try to "bypass" Shlink this way, or how many are getting redirected by this setting.
Same would be cool for 404 errors as they get redirected to www.domain.tld/404.
Would be cool if they also would be tracked. Also what the "not existing" request was.
If I call https://l.domain.tld/not-existing-thing then this should be added to the 404 redirects but should contain the url so we know what was called but did not exist.
GET /visits
endpoint.GET /visits/orphan
endpoint for orphan visits. It should behave the same as the one for short URL visits or tag visits, supporting pagination, filtering etc.base_url
andregular_404
visits.https://shlink.io/new-orphan-visit
).The text was updated successfully, but these errors were encountered: