One project (siteCode) per site
Pros
- Granular team management: Assign specific permissions for each site or project.
- Independent configurations: Each project can have its own unique goals, experiments, and integrations. Additionally, you can easily replicate tests, goals, and segments across different projects when necessary.
- Easier debugging and risk isolation: An issue in one site doesn’t impact others.
- Flexible testing: You can implement various testing strategies for different countries or sites.
Cons
- Inefficient: Setup and maintenance require greater effort. Duplicating configurations and tests across different projects involves manual work, although the Automation API can streamline this process.
- Greater complexity: Managing global test complexity can be more challenging when running tests across multiple sites, as it necessitates duplication and manual aggregation of results.
- Maintenace: Maintaining consistency becomes more difficult, as ensuring identical configurations across sites poses challenges. Additionally, each project requires separate integrations with third-party tools, leading to increased integration effort.
One project (siteCode) for multiple sites (shared siteCodes)
Pros
- Simplified management: Goals, segments, and third-party integrations live in one place for easier handling.
- Easier global testing: You can conduct A/B tests smoothly across multiple regions.
- Faster deployment: There’s no need to duplicate tests, goals, or segments for each individual site.
- Unified data analysis: A single dashboard makes comparing performance across different countries and sites easier.
Cons
- Increased performance impact: Every site loads a single script, even if the site doesn’t need some of its features.
- More complex targeting: Additional criteria, such as URL patterns, are necessary to ensure that experiments only affect relevant users.
- Higher risk exposure: Problems in the shared script (for instance, the global custom script) can impact all sites.
- Limited flexibility: If the sites aren’t identical, you may need workarounds to address the differences.