Blog

Understanding Network_userid and Domain_userid in Snowplow: A Technical Deep Dive

By
Snowplow Team
&
January 22, 2025
Share this post

Q: What are Network_userid and Domain_userid in Snowplow?

In Snowplow, network_userid and domain_userid are key identifiers that play a crucial role in tracking user interactions across sessions and touchpoints.

  • Network_userid is a third-party cookie-based identifier set by the collector. It is consistent across domains and enables cross-domain tracking, making it highly valuable for understanding user behavior across multiple sites or services.

  • Domain_userid is a first-party cookie-based identifier set by the tracker on the user's browser. It is domain-specific and helps in identifying unique users within a single domain or subdomain.

Q: Why do network_userid and domain_userid differ for the same user?

While network_userid is consistent across domains, domain_userid can vary due to the nature of first-party cookies. This discrepancy can occur due to several reasons:

  1. Different Browsers or Devices: If a user accesses the site using multiple browsers or devices, each browser will have its own domain_userid but share the same network_userid.

  2. Cookie Expiry and Deletion: If the domain_userid cookie expires or is deleted, a new domain_userid is generated while the network_userid remains the same.

  3. Cross-Domain Tracking Limitations: If a user interacts with multiple domains without proper cross-domain linking, the domain_userid will differ, but the network_userid will remain unchanged.

Q: How can network_userid have multiple domain_userid values?

A single network_userid can map to multiple domain_userid values under scenarios such as:

  • The user has cleared cookies, resulting in new domain_userid values being generated for the same network_userid.

  • The user accessed multiple domains or subdomains without proper cross-domain tracking configuration.

  • The user interacts with the website across multiple sessions, each generating a new domain_userid due to cookie expiry or browser settings.

Q: How can Snowplow help in managing these discrepancies?

Snowplow provides robust tracking capabilities that help data teams accurately identify and link user interactions across multiple domains and sessions. By configuring the tracker to handle cross-domain tracking effectively and ensuring that cookie lifetimes are aligned, data engineers can minimize these discrepancies.

Additionally, leveraging Snowplow’s enriched events and advanced data modeling capabilities can help in resolving multiple domain_userid values to a single network_userid, allowing for more accurate user attribution and multi-touch analysis.

Q: Best Practices for Managing network_userid and domain_userid

  1. Implement Cross-Domain Tracking: Ensure that cross-domain tracking is properly configured to maintain consistent domain_userid values.

  2. Align Cookie Expiry Settings: Adjust cookie expiration policies to minimize the creation of multiple domain_userid values for the same network_userid.

  3. Data Modeling: Use data models that link network_userid to domain_userid values, enabling comprehensive user journey analysis.

  4. Monitor Data Quality: Regularly audit data to identify and address discrepancies between network_userid and domain_userid mappings.

For further insights and practical implementation examples, refer to the Snowplow documentation.

Subscribe to our newsletter

Get the latest content to your inbox monthly.

Get Started

Whether you’re modernizing your customer data infrastructure or building AI-powered applications, Snowplow helps eliminate engineering complexity so you can focus on delivering smarter customer experiences.