Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
86 stars 9 forks source link

Partner Dashboard missing Admin Performance data #253

Closed fairknowe closed 5 months ago

fairknowe commented 10 months ago

Describe the bug

The last date admin performance data for my app appeared was Nov 6. I understand this was due to a bug that was apparently fixed, but I am still not getting data. I haven't found any solutions in existing issues or in the Partner Community forums.

Admin Performance data missing

Packages and versions

@shopify/app-bridge @ 3.7.9 is loaded by <script src="https://unpkg.com/@shopify/app-bridge@3" nonce="<%= request.content_security_policy_nonce %>"></script> in my app/views/layouts/authenticated.html.erb file. shopify_app (21.7.0) and shopify_api (13.3.0) are loaded as Gems

Platform

Additional context

I'm using Rails 7.1 I am not using React on the front-end. Instead I'm using a vanilla HTML with CSS/Polaris stying, and Hotwire.

My App is still under development and is being loaded only in development stores.

daviareias commented 8 months ago

273

I've been complaining about this to support for the past 6 months and there's no solution, just keep sending message to support until they fix it.

fairknowe commented 8 months ago

Update

I now load app-bridge (v4?) by:

<meta name="shopify-api-key" content="<%= ShopifyApp.configuration.api_key %>">

<script src="https://cdn.shopify.com/shopifycloud/app-bridge.js" nonce="<%= request.content_security_policy_nonce %>"> </script>

The shopify_app gem is now at v (21.10.0).

I still don't have any APP Admin performance stats in my dev stores.

neoanic commented 7 months ago

I've encountered a similar issue where the performance metrics are no longer reported in the admin performance dashboards after switching to the CDN version of App Bridge last December. I'm using Next.js 14, the latest version of React, and Shopify version 2024-01. Interestingly, while the App Bridge performance metrics have ceased, my Vercel Speed Insights are functioning normally.

Has there been any progress on this issue, or could anyone provide insights into potential workarounds? This is particularly critical as I am in the process of preparing my app for review.

neoanic commented 6 months ago

CleanShot 2024-03-13 at 17 50 51@2x

Any updates on this issue? I still don't have any performance statistics in the partner dashboard. Using the latest App Bridge (CDN Version)

neoanic commented 6 months ago

Update: Three days ago, we successfully published our app. As of today, I've observed that the performance data is accessible once more. It's unclear whether this improvement is due to changes within the app bridge or if it's a direct consequence of the app's publication.

fairknowe commented 6 months ago

Good to know, thanks for the update.

henrytao-me commented 6 months ago

@fairknowe @neoanic we just pushed a fix in App Bridge CDN. May I have your appId to try it out? Action items:

JoaoGabrielAlves commented 6 months ago

Hello @henrytao-me. I am developing an app with the most recent shopify cdn ("https://cdn.shopify.com/shopifycloud/app-bridge.js"), vite, react and laravel.

That is my vite.config.js

import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/js/Index.tsx',
                'resources/css/app_block_style.css',
            ],
            refresh: true,
        }),
        react(),
    ],
    css: {
        preprocessorOptions: {
            less: {
                javascriptEnabled: true,
            },
        },
    },
    resolve: {
        preserveSymlinks: true,
    },
    reporters: ['default'],
});

Web vitals seems to be working as expected and there is no data on our admin dashboard as well. I took a look on this issue other github issue https://github.com/Shopify/shopify-app-bridge/issues/193 but we are not using create-react-app. Do you have any idea why the admin dashboard is not receiving data?

App id: 73649127425

henrytao-me commented 6 months ago

@JoaoGabrielAlves I can see your dashboard is empty while the webVitals events do send to the server. I am investigating right now. Are you okay to opt-in to a new WebVitals fix?

JoaoGabrielAlves commented 6 months ago

For sure @henrytao-me. Feel free to apply those possible fixes!

henrytao-me commented 6 months ago

@JoaoGabrielAlves I confirmed the issue and forwarded to data team to investigate. I will keep you posted about missing performance metrics.

JoaoGabrielAlves commented 6 months ago

Thank you @henrytao-me !

cdossantos15 commented 6 months ago

Hi @henrytao-me, we are moving our app from a standalone app to an embedded app and are experiencing this as well -- using the CDN version of AppBridge with React and Node (without using create-react-app). App ID: 1178253 We've temporarily disabled app embedding, but still do not see metrics when we toggle embedding to true.

henrytao-me commented 6 months ago

Hi @cdossantos15, I do see metrics being logged in data pipeline but it don't show up in partner dashboard. I will forward to data team to check your app too 🙇

scart88 commented 6 months ago

We have been experiencing the same issue for the past week.

It looks like the problem was fixed today. We have missing data between March 23 and March 28

Anyway, I'm glad the issue is fixed now.

henrytao-me commented 5 months ago

Updates on this:

Let me know if there are any other cases to investigate 🙇

daviareias commented 5 months ago
* Apps that have less than 100 load times per month won't have BFS badge.

This is not true, you need at least 1000 loads per month in my calculation, because app bridge is not recording most of sessions.

We had 200 installations last month and you can see there's a huge disparity between FID and LCP recording: Screen Shot 2024-04-25 at 14 45 59 Screen Shot 2024-04-25 at 14 49 38 Screen Shot 2024-04-25 at 14 50 06 Screen Shot 2024-04-25 at 14 53 57 Screen Shot 2024-04-25 at 14 54 04

wissem commented 4 months ago

hey @henrytao-me, we are also running into a similar issue. We are moving from a standalone app to an embedded app, we use @shopify/app-bridge-react version 3.7.7 and react 18. There are no web-vitals error on the console. Nothing is being reported under Admin Performance (LCP, CLS, FID are all empty.) We have waited for a few weeks now and have been openning the app multiple times per day.

My testing App ID: 5005323 Could you please have a look?