Handling Invalid Timestamps
Encountering odd or invalid timestamps in the Parse.ly data pipeline, often due to the reader’s web browser or device clock settings, is an occasional issue. These timestamps appear in the ts_session_current
and/or ts_session_last
fields. Although we can’t control these user-generated values, it’s possible to correct them before loading into your database using ETL checks and transformations. Here’s a guide on handling invalid timestamps effectively:
- Comparing Timestamps: During your ETL process, compare the
(browser timestamp) withts_session_current
timestamp_info_nginx_ms
(server timestamp). - Transformation for Significant Gaps: If there’s a notable gap between these timestamps, transform the
to create a new field, likets_session_current
ts_session_current_trans
. Set this new field equal to the minimumtimestamp_info_nginx_ms
for events sharing the samesession_id
,visitor_site_id
, andapikey
. - Handling Acceptable Timestamps: For events within an acceptable time range, set
.ts_session_current_trans
=ts_session_current
- Using the Transformed Timestamp: Future transformations requiring a browser timestamp should use the
field.ts_session_current_trans
If you need additional help with handling invalid timestamps in Parse.ly’s Data Pipeline, contact Support.
Additional Resources for handling timestamps
- Timestamp fields in our raw data schema
- Metadata guidelines for providing the correct publication date format
- Admin Guide: Modifying the time zone of a Dashboard
- How we measure Engaged Time
- How to set date/time parameters with Parse.ly API
Last updated: August 15, 2024