ccbikai / Sink

⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
https://Sink.Cool
GNU Affero General Public License v3.0
2.98k stars 1.59k forks source link

Analytics under paywall? #55

Closed slimpdev closed 1 month ago

slimpdev commented 1 month ago

Hi, i try to deploy this project yesterday, and i cant make this without pay 5$/month. Am I doing something wrong? Are there alternatives? The problem isn't even the $5, it's that I can't even pay it on principle since all of our cards have been blocked. chrome_StTVxD2Ix0

ccbikai commented 1 month ago

I just checked the documentation, and it still supports the free version https://developers.cloudflare.com/analytics/analytics-engine/pricing/

slimpdev commented 1 month ago

Yes, i see this docs, but how to use it? I add this:

[[analytics_engine_datasets]]
binding = "ANALYTICS"
dataset = "sink"

To my wrangler.toml, but project still not see it(

najimi commented 1 month ago

This confused me at first too. You need to check Workers & Pages > Overview and look at the right sidebar where it says Analytics Engine and make sure to enable it. You will then be able to add it to your project.

Direct link: https://dash.cloudflare.com/?to=/:account/workers/analytics-engine

slimpdev commented 1 month ago

Direct link: https://dash.cloudflare.com/?to=/:account/workers/analytics-engine

Yes it works! Thank you, after enable by this button i can add analytics engine to my deployment.