Skip to content

Option for public stats #73

Open
Open
@xianx

Description

@xianx

Its very important for short URL service that Non logged in user can also view stat. Because short URL service is for tracking links. So there should be a option to make individual link stat public or private.

So there is two scenario not logged-in user and logged-in user

When user in not logged-in

There will be a drop down button. None, Public, Private. Non logged in user can select one of options:

When nothing is selected : https://techtun.es/R62z6c+ will only show target url.
When Public is selected : https://techtun.es/R62z6c+ will show stat publicly to anyone without logged-in.
When Private is selected : Non logged-in user will get message that he need to login.

When user is logged-in

There will be a dropdown in Table after the delete button. Logged in user can select one of the options:

When nothing is selected (by default) : https://techtun.es/R62z6c+ will only show target url.
When Public is selected : https://techtun.es/R62z6c+ will show stat publicly to anyone without logged-in.
When Private is selected : https://techtun.es/R62z6c+ will show stat privately with logged-in .

In setting page there also be an option what will be the default stat option. Public or Private by default none.

Looking forward to implement this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions