Inconsistent & Incorrect Timestamp Values in Shopify Pixel Events

Topic summary

A developer is experiencing inconsistent timestamp issues with Shopify App Pixel event tracking.

The Problem:

  • Some events show incorrect timestamps (e.g., 2025-05-27T00:00:00.093Z) when the actual time is 2025-05-27T03:17:28Z
  • The issue affects random events—approximately 3-4 out of every 10 product view events
  • Timestamps are reset to midnight (00:00:00) with only milliseconds preserved

Attempted Solution:

  • Implemented logic to replace incorrect timestamps with current time when large discrepancies are detected
  • However, the “current time” retrieved also matches the incorrect timestamp, suggesting the issue may be systemic within Shopify’s pixel infrastructure

Status: The issue remains unresolved with no responses yet. The developer is seeking guidance on why timestamps are being corrupted and how to reliably capture accurate event timing.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

We are using the Shopify App Pixel in our app to track all standard events for shopify store. However, we’re encountering an issue where some event payloads have incorrect timestamp values. When the actual current timestamp is something like 2025-05-27T03:17:28Z, some events are recorded with a timestamp such as 2025-05-27T00:00:00.093Z. This issue occurs on random events. For example, if there are 10 product view events triggered, about 3–4 of them might show this incorrect timestamp value.

To prevent this on our end, we implemented logic in our pixel handler to replace the event timestamp with the current time when a large discrepancy is detected.However, we noticed that even “current time” is also wrong and exactly matches the incorrect timestamp (2025-05-27T00:00:00.093Z).