Capturing custom data from Shopify
Leveraging Custom Data and server-timing headers provided by Shopify
Shopify has added server-timing headers which can be leveraged to get more visibility into the performance of your application. Simply add the existing server-timing entries as Custom Data
See this support article for examples
This will allow you to create Metrics for:
- cfRequestDuration = Duration from the time the request hits Cloudflare (CDN) until it is finished processing.
- processing = Duration from the time the request reaches the Storefront until processing of the request is complete.
- db = Duration of the request processing spent querying the database. (Subset of processing time)
You can also create Dimensions for:
- asn = Autonomous System Number
- edge = Location of CDN edge server
- country = Country of CDN edge server
- theme = Shopify theme used
- pageType = page identifier
- earlyhints = Were early hints used for the request (if present, assume yes)
Updated 3 days ago