If you are using Adobe DTM you can set up a Page Load Rule that populates a variable, such as an s.eVar, with a value linked to a Data Collection Query Parameter (Data Collection Query Parameters).For example, you could set s.eVarX to capture the Experience Cloud ID, which uses the "mid" parameter....