Skip to content

This embedded app provides a report on how real-world Google Chrome users experience the Shopify-powered storefront, as captured by the Chrome UX Report, and enables the site owner to benchmark their site against a custom list of competitors.

License

Notifications You must be signed in to change notification settings

igrigorik/shopify-core-web-vitals

Repository files navigation

Core Web Vitals (app) for Shopify

Optimizing quality of user experience is critical to the success of every storefront. Core Web Vitals are a set of metrics and thresholds that capture the core user experience needs of fast loading experience, interactivity, and visual stability. Core Web Vitals are part of the upcoming page experience signal for Google Search, are widely available across popular Google web developer tools, and can be tracked by every site owner both in development and in production.

This embedded app provides a report on how real-world Google Chrome users experience the Shopify-powered storefront, as captured by the Chrome UX Report, and enables the site owner to benchmark their site against a custom list of competitors.

CWV for Shopify preview

Take it for a spin on your own development store: https://core-web-vitals-dashboard.herokuapp.com/login

Development

  1. Install Shopify CLI

  2. Install PostgreSQL

  3. Bootstrap Rails environment:

    • ruby-2.6.6 and bundler gem
    • nodejs and webpacker gem
    • bundle install
    • rails db:prepare
  4. Launch the Rails app via shopify serve, optionally pass ENV variable to override the store origin for testing & development, e.g... SHOPORIGIN='https://www.allbirds.com' shopify serve

  5. Navigate to the tunnel URL and install the dev app on your Shopify store

Updating GraphQL API version

  1. Get token from @current_shopify_session.domain
  2. Run the update via rake shopify_api:graphql:dump API_VERSION=XXXX-XX SHOP_DOMAIN=<DOMAIN> ACCESS_TOKEN=<TOKEN>

Contributing

Have suggestions on how to improve the report, or a feature you'd like to nominate? Head to Issues and start the conversation.

About

This embedded app provides a report on how real-world Google Chrome users experience the Shopify-powered storefront, as captured by the Chrome UX Report, and enables the site owner to benchmark their site against a custom list of competitors.

Topics

Resources

License

Stars

Watchers

Forks