ÃÛ¶¹ÊÓƵ

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.

  1. Use the Quantum Metric extension in the tags UI to send data to Quantum Metric.

  2. Create four data elements:

    1. One that captures the Quantum Metric session ID from Quantum Metric’s cookie named QuantumMetricSessionID
    2. 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.
    3. Use the data element assistant or custom JavaScript to extract the s node from the localStorage data element.
    4. 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.
  3. Send the final Quantum Metric session ID data element to the XDM object sent in every event.

NOTE
Sometimes the Web SDK runs faster than the Quantum Metric code. In these cases, the session ID is sent on the subsequent hit. If a visitor bounces, then the session ID is not collected in these instances.

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.

  1. Log in to .
  2. Navigate to Customer Journey Analytics, and select Data views in the top menu.
  3. Select the desired existing data view.
  4. Locate the Quantum Metric session ID field list on the left, and drag it to the dimensions area in the center.
  5. In the right pane, set the persistence setting to ‘Session’.
  6. Click Save.
recommendation-more-help
080e5213-7aa2-40d6-9dba-18945e892f79