The internal jump added parameters or changed the language version, how much source information is taken out is determined by what
When jumping from one page to another within the site, or switching language versions, a piece of 'Where I came from' source information is attached to the request. How much is taken out is not arbitrary, but determined by the referral strategy. By convention, the default is a strict same-origin cross-domain strategy: when the same origin is involved, the complete path and query string are carried; when cross-origin and the security level remains unchanged, only the origin is carried; when downgraded to a less secure destination, it is simply not carried. When falling into the site, the path after switching multilingual versions and pseudo-static rewriting will change how this source information is merged in the statistics, and the口径 needs to be aligned in advance.
Which level is the default strategy?
If the site does not explicitly specify a reference strategy, or the given value is invalid, the browser uses the strict-origin-when-cross-origin level. It is the default behavior and not a feature that needs to be enabled separately. Understanding this strategy allows you to predict which layer the source information is intercepted at during a jump: it can be seen in full within the same site, it converges when crossing sites, and it does not send directly to destinations with decreased security.
What do the three scenarios each carry?
| Scene | The source information carried out | Description |
|---|---|---|
| Same-origin jump | Source + path + query string | Complete URL, parameters included |
| Cross-origin and the security level remains unchanged (such as HTTPS→HTTPS) | Only the origin is included | The path and query string are removed |
| Downgraded to a less secure destination (HTTPS→HTTP) | Do not send | Don't include the origin at all |
The key difference is in the 'query string' item: it includes the full string when the same origin is present, and only the origin when cross-origin. That is, whether the jump stays within the same origin and whether the destination protocol is secure together determine whether the parameters are still present.
Two places within the site will be affected
The first is a language version switch. The configuration and switching of multilingual sites allow readers to navigate between different language versions of the same site; if this switch remains within the same origin, the source information will be accompanied by the complete path and query string; if the entire page is translated and points to another set of language paths, the statistics will clearly show the source paths between adjacent language versions. Conversely, if the language versions are split into different subdomains, after one cross-origin jump, only the source remains, and the paths between versions become blurred in the statistics. Whether to switch to a same-origin path or a cross-subdomain, it directly affects what granularity this source information can be merged into.
The second is a static URL. The static URL rules support custom URLs, the page may carry parameters in the system, but presents a neat path to the outside.Due to the referencing strategy, when it is the same origin, it is according to the 'current this URL' to output the path and query string. The rewritten static path determines which section the downstream sees: the same content, parameter-based and static in statistics are two types of source forms.To ensure a consistent source information statistical perspective, the rewriting rules and the口径 of sorting, statistical merging need to align - this is also the reason why pseudo-static URL rules, as an SEO method, will affect source statistics.
Common questions
What is the amount of source information carried when no reference strategy is set?\nAnswer: It follows the default strict same-origin cross-domain strategy, full path for same-origin, only source for cross-origin, and no downgrade without source.
Will changing the language version affect source statistics?\nAnswer: Yes. It stays with the full path for same-origin, only the source for cross-subdomain, and different granularity for merging.
What is the relationship between pseudo-static and source information?\nAnswer: The rewritten path determines which segment is carried out when jumping to same-origin, affecting the statistical form.