Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analytics issue #61

Open
anthony1204 opened this issue Oct 19, 2024 · 15 comments
Open

analytics issue #61

anthony1204 opened this issue Oct 19, 2024 · 15 comments

Comments

@anthony1204
Copy link

the analysis tab is broken it just says forbidden. i skipped the step where you set the analytics because it was locked behind a paywall.

@brmysss
Copy link

brmysss commented Oct 19, 2024

分析功能好像用不了

@saltbo
Copy link

saltbo commented Oct 20, 2024

Available on Workers Paid plan

要收费了?

@ccbikai
Copy link
Owner

ccbikai commented Oct 20, 2024

The Workers analysis feature is currently in Beta and needs to be enabled through the Pages & Workers homepage.

Just a couple of days ago, someone reported it was free

@saltbo
Copy link

saltbo commented Oct 20, 2024

Thx, I fount it in the right-bottom of the Page's home.

@manuelosorio
Copy link
Contributor

Thx, I fount it in the right-bottom of the Page's home.

What did you have to do to enable the analytics engine?

@digiturnal
Copy link

Analytics Engine is now a Paid Feature, is there an alternative way to get the Analytics

@ZL-Asica
Copy link
Contributor

ZL-Asica commented Oct 29, 2024

Here are the steps you need to follow to set up the analytics engine in the Cloudflare Free plan.

如果想要在免费计划的Cloudflare中开启分析引擎按照下面的截图操作。

@manuelosorio @digiturnal @brmysss @anthony1204

Step 1

Open Workers & Pages on your account page.
打开你账户仪表盘页面的Workers 和 Pages

Step 1

Step 2

On the right side, find this.
在右边找到分析引擎选项。

Step 2

Step 3

Enable it. It's all free. (with limit)
开启就行,注意免费版有用量限制

Step 3

@prestonzen
Copy link

prestonzen commented Nov 5, 2024

My analytics engine ($5 monthly paid tier) is not updating the sink data even though it sees the events in cloudflare. Is there a delay from event to display in sink?
image
image
image

Cloudflare Analytics Engine tracks the dataset but does not bring the data back over to the sink app. There is a custom domain (https://kaizenl.ink) applied as well as a home url that points to the /dashboard/ instead of the default home screen.

I suspect it may have to do with the API request to the analytics API not showcasing the custom domain results to the backend but the console shows no errors even though the shortlink works fine as seen in this screenshot in the next tab.

image

@prestonzen
Copy link

Issue solved for me

https://github.com/ccbikai/Sink/blob/master/docs/faqs.md
https://github.com/ccbikai/Sink/blob/master/docs/configuration.md

  1. Why can't I see statistics after deploying with NuxtHub?
    NuxtHub's ANALYTICS points to its dataset, you need to set the NUXT_DATASET environment variable to point to the same dataset.

@ZL-Asica Please clarify in the deployment instructions that the NUXT_DATASET environment variable matching the analytics engine dataset name is required for full functionality. According to the configuration guide it isn't recommended to change and it isn't clarified that Sink is searching for the sink dataset by default

image

@ZL-Asica
Copy link
Contributor

ZL-Asica commented Nov 6, 2024

Issue solved for me

https://github.com/ccbikai/Sink/blob/master/docs/faqs.md

https://github.com/ccbikai/Sink/blob/master/docs/configuration.md

  1. Why can't I see statistics after deploying with NuxtHub?

NuxtHub's ANALYTICS points to its dataset, you need to set the NUXT_DATASET environment variable to point to the same dataset.

@ZL-Asica Please clarify in the deployment instructions that the NUXT_DATASET environment variable matching the analytics engine dataset name is required for full functionality. According to the configuration guide it isn't recommended to change and it isn't clarified that Sink is searching for the sink dataset by default

image

You can take a look the .env.example. The default Analytics Engine ANALYTICS should be sink. Setting NUXT_DATASET in your environment variables is not mandatory. However, set the binding of Analytics Engine ANALYTICS to sink is mandatory.

@raguventhan
Copy link

raguventhan commented Nov 19, 2024

After enabling Analytic engine also i had Bad Request error, Regenerating API_TOKEN and deploying again solved the problem.

Note: I have paid plan, free not working

@anthony1204
Copy link
Author

anthony1204 commented Nov 25, 2024 via email

@gabeleon
Copy link

gabeleon commented Dec 2, 2024

@ZL-Asica

Problem

Analytics not working.

Details

  1. I was able to add the free analytics.
    Screenshot 2024-12-02 at 5 02 32 PM
  2. I named the analytics sink.
    Screenshot 2024-12-02 at 5 02 57 PM
  3. I created the account.analytics engine read permission token.
    SCR-20241202-pczg
  4. I set the binding per instructions.
    Screenshot 2024-12-02 at 5 06 26 PM

I do not get any console or request errors.
The data loads, but it's always 0. The lower part of the analytics is always loading.
Screenshot 2024-12-02 at 5 03 46 PM

This is what it looks like on the request:
SCR-20241202-pehp

This tells me two things:

  1. There's no authentication error.
  2. I assume it recognizes sink analytics exists.
  3. It's not retrieving existing data. There seems to be data there as you can see on the screenshot above.

I did try adding the NUXT_DATASET to sink. But it doesn't help.
I'm using a custom domain.

I don't know what else to try.

@ZL-Asica
Copy link
Contributor

ZL-Asica commented Dec 3, 2024

Analytics not working.

This time it seems to be the issue with the analytics engine itself instead of your setting. I am still looking into it.

@didingqd
Copy link

didingqd commented Dec 28, 2024

I'm using the free version of Analytics Engine and I get the error: Unprocessable Entity

image.png

image.png

image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests