Collect Quantum Metric session IDs in Customer Journey Analytics
Some use cases, such as tying Quantum Metric session replays or using Quantum Metric heatmaps require that you modify your implementation to collect the Quantum Metric session ID. This page outlines that process to successfully bring that data into your existing implementation.
Prerequisites:
These steps assume that you use tags in ÃÛ¶¹ÊÓƵ Experience Platform Data Collection. You can adapt these data collection methods towards a manual Web SDK implementation if your organization does not use tags.
See the Quantum Metric tag extension documentation for more information.
Step 1: Capture the Quantum Metric session ID using the Quantum Metric tags extension
Follow these steps to append the Quantum Metric session ID to the data that you send to ÃÛ¶¹ÊÓƵ Experience Platform.
-
Use the Quantum Metric extension in the tags UI to send data to Quantum Metric.
-
Create four data elements:
- One that captures the Quantum Metric session ID from Quantum Metric’s cookie named
QuantumMetricSessionID
- One that extracts the Quantum Metric session ID from
localStorage
. Sometimes this data element loads faster than the cookie set in the other data element. - Use the data element assistant or custom JavaScript to extract the
s
node from thelocalStorage
data element. - One that uses logic to first look for the cookie data element and return it to an XDM object path if found. If undefined, try looking in the extracted
localStorage
object data element.
- One that captures the Quantum Metric session ID from Quantum Metric’s cookie named
-
Send the final Quantum Metric session ID data element to the XDM object sent in every event.
Step 2: Confirm included dataset fields
Confirm that the datasets in your connection now have the Quantum Metric session ID in the desired dataset.
Step 3: Add Quantum Metric session ID as an available dimension
Edit your existing data view to add the session ID as an available dimension in Customer Journey Analytics.
- Log in to .
- Navigate to Customer Journey Analytics, and select Data views in the top menu.
- Select the desired existing data view.
- Locate the Quantum Metric session ID field list on the left, and drag it to the dimensions area in the center.
- In the right pane, set the persistence setting to ‘Session’.
- Click Save.