choraria / gas-url-shortener

A URL Shortening service powered by Google Apps Script.
https://tmt.pw/
MIT License
64 stars 32 forks source link

Capture & Display Link Analytics #13

Open choraria opened 4 years ago

choraria commented 4 years ago

Figure out a mechanism where users can access link analytics.

Example: By visiting https://tmt.pw/short+ users can now see the following -

oshliaer commented 4 years ago

The best way for this it's use an API endpoint like

https://tmt.pw/stat/{SLUG}

It could return the result if the user created the "Stat" sheet and added the slug identifier to the first column. Any other statistics are available to the user as he wants. He can add the QUERY formula and calculate the results as he pleases.

Should I show a live sample?

choraria commented 4 years ago

@contributorpw - that's a good implementation idea but I believe we'll need to start with first logging these stats and more importantly, design a user management system (where users can login) and either choose to display stats publicly or otherwise.

oshliaer commented 4 years ago

@schoraria911 Please refer me to the entry point! How can I help now?