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.
- Set up the variable in Admin Console. Make sure that it's enabled, and not which eVar number you are using.
- Log into Adobe DTM and click on the Rules item in the ribbon above where the tools are listed.
- On the Rules page, click on Page Load Rules in the left menu. This takes you to the Page Load Rules page.
- On the Page Load Rules page, click "Edit" next to the Global Page Load Rules. This takes you to the Edit Page Load Rule page.
- On the Edit Page Load Rule page, open the Adobe Analytics accordion menu.
- From the drop down menu in the eVars section, select eVarX (this is the eVar you activated in step 1). Select the "set as" radio button, and in the blank space type in D=mid. Click the "Save eVar" button.
- You should now see the eVar added in the list. It will look like this: eVarX="D=mid".
You can also follow the steps above to capture the Analytics visitor ID, which uses the "aid" parameter.