このページ: Journey Optimizer システムデータセットに対する、すぐに使用できる SQL クエリの例について説明します。これにより、メールやプッシュのトラッキング、メッセージフィードバック、ジャーニーステップ、決定データを分析し、レポートやトラブルシューティングに役立てることができます。
このページでは、Adobe Journey Optimizer データセットと関連する使用例のリストを示します。
各スキーマのフィールドと属性の完全なリストを表示するには、Adobe Journey Optimizer スキーマリファレンスを参照してください。
また、一般的に使用されるいくつかのジャーニーステップイベントのクエリを実行する例も参照してください。
適切なデータセットの選択 choose-the-correct-dataset
クエリを実行する前に、ジャーニーで分析するアクションのタイプと一致するデータセットを確認します。
- ネイティブ Journey Optimizer チャネルアクション(
sentまたはbounceステータスなど)のメッセージ配信フィードバックを確認するには、メッセージフィードバックイベントデータセットを使用します。 - 開封数やクリック数などのメールのインタラクションイベントを確認するには、メールトラッキングエクスペリエンスイベントデータセットを使用します。
- Journey Optimizer がカスタムアクションを実行したことを確認し、その実行ステータス、待ち時間、エラーの詳細を調査するには、ジャーニーステップイベントデータセットを使用します。
クエリが「データセット用にテーブルがプロビジョニングされていません」を返す場合 table-not-provisioned
このメッセージは、必ずしもデータセットのプロビジョニングが失敗したことを意味するわけではありません。 アドビサポートに連絡する前に、次の点を確認します。
- データセットワークスペースで、システムデータセットを表示を有効にします。 システム生成データセットは、デフォルトでは非表示になっています。 方法について詳しくは、データセットへのアクセスを参照してください。
- クエリで使用される正確なテーブル名が、サンドボックスのデータセットワークスペースに表示されるテーブル名と一致することを確認します。
- ジャーニーのアクションタイプが、クエリを実行しているデータセットと一致することを確認します。 適切なデータセットの選択を参照してください。
- メッセージフィードバックイベントデータセットなど、バッチ取り込みを使用するデータセットの場合、データが使用可能になるまでに最大 2 時間かかります。
- カスタムアクションの場合は、外部配信にメッセージフィードバックイベントレコードを期待するのではなく、ジャーニーステップイベントデータセットのクエリを実行します。
データセットにデータを含める必要があり、テーブルが使用できないままの場合は、アドビサポートに連絡する前に、サンドボックス名、データセット名、クエリ ID、タイムスタンプを収集します。
メールトラッキングエクスペリエンスイベントデータセット email-tracking-experience-event-dataset
インターフェイス内の名前:AJO Email Tracking Experience Event Dataset
Journey Optimizer からメールトラッキングエクスペリエンスイベントを取り込むためのシステムデータセット。
関連するスキーマは、AJO メールトラッキングエクスペリエンスイベントスキーマです。
このクエリは、特定のメッセージに対する様々なメールインタラクション数(開封数、クリック数)を表示します。
select
_experience.customerJourneyManagement.messageInteraction.interactionType AS interactionType,
count(1) eventCount
from ajo_email_tracking_experience_event_dataset
where
_experience.customerJourneyManagement.messageExecution.messageExecutionID IN ('UMA-30647505')
group by
_experience.customerJourneyManagement.messageInteraction.interactionType
このクエリは、特定のジャーニーに関してメッセージ別に、様々なメールのインタラクション(開封数、クリック数)のカウントの分類を表示します。
select
_experience.customerJourneyManagement.messageExecution.messageExecutionID AS messageExecutionID,
_experience.customerJourneyManagement.messageInteraction.interactionType AS interactionType,
count(1) eventCount
from ajo_email_tracking_experience_event_dataset
where
_experience.customerJourneyManagement.messageExecution.journeyVersionID IN ('0e86ac62-c315-48cc-ab4f-3f8b741ae667')
group by
_experience.customerJourneyManagement.messageExecution.messageExecutionID,
_experience.customerJourneyManagement.messageInteraction.interactionType
order by
_experience.customerJourneyManagement.messageExecution.messageExecutionID,
_experience.customerJourneyManagement.messageInteraction.interactionType
limit 100;
メッセージフィードバックイベントデータセット message-feedback-event-dataset
インターフェイスの名前:AJO メッセージフィードバックイベントのデータセット
AJO メッセージフィードバックイベントデータセットには、Adobe Journey Optimizer により生成されたメッセージ配信フィードバックが保存されます。 電子メール、モバイルメッセージ、ダイレクトメール、カスタムチャネルなど、メッセージチャネルをまたいだ配信フィードバック分析をサポートしています。 フィードバックイベントは、レポートやオーディエンス作成のユースケースに使用できます。
関連するスキーマは AJO Message Feedback Event スキーマです。
-
Adobe Journey Optimizer では、
sentはメッセージ配信の成功に使用される値です。メッセージフィードバックイベントデータセットでは、deliveredは使用されません。 -
このデータセットでは、バッチ取り込みが使用されるので、データは最大 2 時間遅延する場合があります。
-
チャネル固有のコンテキストフィールドは、すべてのイベントで入力されることは保証されません。 メッセージ実行識別子、フィードバックステータス、エラーの詳細、タイムスタンプ、ID 情報をプライマリ相関フィールドとして使用します。
フィールド、フィールドパス、データタイプ、説明の完全なリストについて詳しくは、Adobe Journey Optimizer スキーマリファレンスを参照してください。
テスト実行とテスト以外の実行の分類 classify-test-executions
isTestExecution フィールドに入力されている場合は、そのフィールドを使用して、テスト実行とテスト以外の実行を区別します。
クエリを作成する前に、Adobe Journey Optimizer スキーマリファレンスを参照して、AJO メッセージフィードバックイベントスキーマの現在のフィールドパス、データタイプ、説明を確認します。
入力された値は、次のように解釈します。
truefalseNULL または欠落しているNULL を false に自動的に変換しないでください。また、すべての null 値が本番環境での実行を表していると想定しないでください。 特定のチャネルや履歴期間に対して、null 値がテスト以外のレコードを表していることがレポートの実装で検証された場合は、ダウンストリームのレポートビューにそのマッピングを適用し、ルールを明示的に文書化します。
一部の履歴レコードやチャネル固有のレコードでは、メッセージコンテキストのすべてのフィールドが入力されない場合があります。 したがって、フィールドの可用性をチャネルごとにテストし、null を空の文字列や推測値として処理するのではなく、保持する必要があります。
Adobe Journey Optimizer スキーマリファレンスで isTestExecution パスを確認した後にのみ、このクエリを実行します。
SELECT
_experience.customerJourneyManagement.messageProfile.isTestExecution AS isTestExecution,
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus AS feedbackStatus,
COUNT(*) AS eventCount
FROM ajo_message_feedback_event_dataset
GROUP BY
_experience.customerJourneyManagement.messageProfile.isTestExecution,
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus
ORDER BY
isTestExecution,
feedbackStatus;
このクエリは、メッセージフィードバックレコードを、テスト実行インジケーターおよび配信フィードバックステータスごとにグループ化します。 結果では、null または欠落した isTestExecution 値が保持されるので、テスト実行値が記録されていないレコードを個別に確認できます。
このクエリは、異なるメールフィードバックステータス(送信済み、バウンスなど)の数を表示します。 特定のメッセージの場合:
select
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus AS feedbackStatus,
count(1) eventCount
from ajo_message_feedback_event_dataset
where
_experience.customerJourneyManagement.messageExecution.messageExecutionID IN ('UMA-30647505')
group by
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus;
このクエリは、異なるメールフィードバックステータス(送信済み、バウンスなど)のカウントの内訳を示します。 特定のジャーニーのメッセージ別:
select
_experience.customerJourneyManagement.messageExecution.messageExecutionID AS messageExecutionID,
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus AS feedbackStatus,
count(1) eventCount
from ajo_message_feedback_event_dataset
where
_experience.customerJourneyManagement.messageExecution.journeyVersionID IN ('0e86ac62-c315-48cc-ab4f-3f8b741ae667')
group by
_experience.customerJourneyManagement.messageExecution.messageExecutionID,
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus
order by
_experience.customerJourneyManagement.messageExecution.messageExecutionID,
_experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus
limit 100;
集計レベルにおけるドメインレベルのレポート(トップドメイン順):ドメイン名、送信されたメッセージ、バウンス
SELECT split_part(_experience.customerJourneyManagement.emailChannelContext.address, '@', 2) AS recipientDomain, SUM( CASE WHEN _experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'sent' THEN 1 ELSE 0 END)AS sentCount , SUM( CASE WHEN _experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'bounce' THEN 1 ELSE 0 END )AS bounceCount FROM ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' GROUP BY recipientDomain ORDER BY sentCount DESC;
毎日のメール送信:
SELECT date_trunc('day', TIMESTAMP) AS rolluptimestamp, SUM( CASE WHEN _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus = 'sent' THEN 1 ELSE 0 END) AS deliveredcount FROM ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' GROUP BY date_trunc('day', TIMESTAMP) ORDER BY rolluptimestamp ASC;
特定のメール ID がメールを受け取ったかどうか、受け取っていない場合は、エラー、バウンスカテゴリ、コードを調べます。
SELECT _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus AS status, _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.reason AS failurereason, _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.type AS bouncetype FROM ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' AND _experience.customerjourneymanagement.emailchannelcontext.address = 'user@domain.com' AND TIMESTAMP >= now() - INTERVAL '7' DAY ORDER BY status ASC
過去 x 時間/日間に、特定のエラー、バウンスカテゴリまたはコードを持つ、または特定のメッセージ配信に関連する、個々のメール ID のリストを見つけます。
SELECT _experience.customerjourneymanagement.emailchannelcontext.address AS emailid, _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus AS status, _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.reason AS failurereason, _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.type AS bouncetype FROM ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' AND _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus != 'sent' AND TIMESTAMP >= now() - INTERVAL '10' HOUR AND _experience.customerjourneymanagement.messageexecution.messageexecutionid = 'BMA-45237824' ORDER BY emailid
集計レベルでのハードバウンス率:
select hardBounceCount, case when sentCount > 0 then(hardBounceCount/sentCount)*100.0 else 0 end as hardBounceRate from ( select SUM( CASE WHEN _experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'bounce' AND _experience.customerJourneyManagement.messageDeliveryfeedback.messageFailure.type = 'Hard' THEN 1 ELSE 0 END)AS hardBounceCount , SUM( CASE WHEN _experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'sent' THEN 1 ELSE 0 END )AS sentCount from ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' )
バウンスコード別にグループ化された永続的なエラー:
SELECT _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.reason AS failurereason, COUNT(*) AS hardbouncecount FROM ajo_message_feedback_event_dataset WHERE _experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus = 'bounce' AND _experience.customerjourneymanagement.messagedeliveryfeedback.messagefailure.type = 'Hard' AND _experience.customerjourneymanagement.messageprofile.channel._id = 'https://ns.adobe.com/xdm/channels/email' GROUP BY failurereason
messageID は個々の配信ごとに一意ではない場合があります。 ジャーニーで同じアクションを同じプロファイルに再送信する場合は、同じ messageID を再利用できます。 したがって、個々の送信レベルでイベントを正確に追跡したり属性を設定したりするには、journeyVersionID、journeyActionID、batchInstanceID(バッチジャーニーの場合)または identityMap フィールドを組み合わせて、より正確な一意性を実現します。ISP のサービス停止後に強制隔離されたアドレスの識別 isp-outage-query
インターネットサービスプロバイダー(ISP)が停止した場合、特定のドメインに対してバウンス(強制隔離)と誤ってマークされたメールアドレスを特定する必要があります。 これらのアドレスを取得するには、次のクエリを使用します。
SELECT
_experience.customerJourneyManagement.emailChannelContext.address AS RecipientAddress,
timestamp AS EventTime,
_experience.customerJourneyManagement.messageDeliveryfeedback.messageFailure.reason AS "Invalid Recipient"
FROM ajo_message_feedback_event_dataset
WHERE
eventtype = 'message.feedback' AND
DATE(timestamp) BETWEEN '<start-date-time>' AND '<end-date-time>' AND
_experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus = 'bounce' AND
_experience.customerJourneyManagement.emailChannelContext.address ILIKE '%domain.com%'
ORDER BY timestamp DESC;
日付の形式は、YYYY-MM-DD HH:MM:SS です。
識別されたら、Journey Optimizerの抑制リストからこれらのアドレスを削除します。 学習を増やす。
プッシュトラッキングエクスペリエンスイベントデータセット push-tracking-experience-event-dataset
インターフェイスの名前:AJO プッシュトラッキングエクスペリエンスイベントのデータセット
Journey Optimizer からプッシュ用のモバイルトラッキングエクスペリエンスイベントを取り込むためのデータセット。
関連するスキーマは、AJO プッシュトラッキングエクスペリエンスイベントスキーマです。
クエリの例:
select _experience.customerJourneyManagement.pushChannelContext.platform, sum(pushNotificationTracking.customAction.value) from ajo_push_tracking_experience_event_dataset
group by _experience.customerJourneyManagement.pushChannelContext.platform
select _experience.customerJourneyManagement.pushChannelContext.platform, SUM (_experience.customerJourneyManagement.messageInteraction.offers.offerCount) from ajo_email_tracking_experience_event_dataset
group by _experience.customerJourneyManagement.pushChannelContext.platform
ジャーニーステップイベント journey-step-event
内部名:ジャーニーステップイベント(システムデータセット)
ジャーニーでステップイベントを取り込むデータセット。
関連するスキーマは、Journey Orchestration のジャーニーのイベントステップイベントです。
このクエリは、特定のジャーニーのアクションラベル別に、アクション成功数の分類を表示します。
select
_experience.journeyOrchestration.stepEvents.actionName AS actionLabel,
count(1) actionSuccessCount
from journey_step_events
where
_experience.journeyOrchestration.stepEvents.journeyVersionID IN ('0e86ac62-c315-48cc-ab4f-3f8b741ae667')
AND _experience.journeyOrchestration.stepEvents.actionID IS NOT NULL
AND _experience.journeyOrchestration.stepEvents.actionType IS NOT NULL
AND _experience.journeyOrchestration.stepEvents.actionExecutionErrorCode IS NULL
group by
_experience.journeyOrchestration.stepEvents.actionName;
このクエリは、特定のジャーニーの nodeId および nodeLabel ごとに、エントリしたステップ数の分類を表示します。 nodeLabel は異なるジャーニーノード間で同じになる場合があるため、ここでは nodeId も含めています。
select
_experience.journeyOrchestration.stepEvents.nodeID AS nodeID,
_experience.journeyOrchestration.stepEvents.nodeName AS nodeLabel,
count(1) stepEnteredCount
from journey_step_events
where
_experience.journeyOrchestration.stepEvents.journeyVersionID IN ('0e86ac62-c315-48cc-ab4f-3f8b741ae667')
AND _experience.journeyOrchestration.stepEvents.journeyNodeProcessed = TRUE
AND _experience.journeyOrchestration.stepEvents.eventID IS DISTINCT FROM 'createInstance'
group by
_experience.journeyOrchestration.stepEvents.nodeID,
_experience.journeyOrchestration.stepEvents.nodeName;
このクエリは、プロファイル ID とメッセージフィードバックイベントデータセットを使用して、プロファイルへのメッセージの配信に関連付けられているジャーニー内のノード(nodeID と nodeName 別)を取得します。
select
_experience.journeyorchestration.stepevents.nodeID, JSE._experience.journeyorchestration.stepevents.nodeName
from journey_step_events JSE
where
_experience.journeyOrchestration.stepEvents.actionID
in
(
select
_experience.customerJourneyManagement.messageExecution.journeyActionID
from ajo_message_feedback_event_dataset
where
_experience.customerJourneyManagement.messageProfile.messageProfileID = '<PROFILE ID>'
group by
_experience.customerJourneyManagement.messageExecution.journeyActionID
)
group by
_experience.journeyorchestration.stepevents.nodeID, JSE._experience.journeyorchestration.stepevents.nodeName
また、一般的に使用されるいくつかのジャーニーステップイベントのクエリを実行する例も参照してください。
詳しくは、journey_step_events で破棄されたイベントタイプのトラブルシューティングを参照してください。
決定イベントデータセット ode-decisionevents
インターフェイスの名前:ODE DecisionEvents (システムデータセット)
ユーザー向けのオファー提案を取り込むためのデータセット。
関連するスキーマは、ODE DecisionEvents です。
このクエリでは、前日に返されたすべてのオファーを表示します。
SELECT date_format(Decision.Timestamp, 'MM/dd/yyyy') as Date
,HOUR(Decision.timestamp) as Hour
,COUNT(*) as Count
FROM ode_decisionevents_b699fa78_efec_41b1_99fa_78efecc1b1ef_decision AS Decision
WHERE date_format(Decision.timestamp, 'MM/dd/yyyy') = date_format(CURRENT_DATE, 'MM/dd/yyyy') and Decision._experience.decisioning.propositionDetails.activity[0].id = 'xcore:offer-activity:13ab41890a335ad6'
GROUP BY date_format(Decision.Timestamp, 'MM/dd/yyyy')
,HOUR(Decision.timestamp)
ORDER BY 1, 2 DESC;
このクエリは、特定のアクティビティ/決定において、過去 30 日間にオファーが提案された回数と関連するオファーの優先度を表示します。
select proposedOffers.id,proposedOffers.name, po._experience.decisioning.ranking.priority, count(proposedOffers.id) as ProposedCount from (
select explode(propositionexplode.selections) AS proposedOffers from
(select explode(_experience.decisioning.propositionDetails) AS propositionexplode,timestamp FROM ode_decisionevents_itca_decisioning_20230925_235340_379 where date_format(timestamp, 'MM/dd/yyyy') >= date_format(DATE_ADD(CURRENT_DATE, -30), 'MM/dd/yyyy') and _experience.decisioning.propositionDetails.activity[0].id = 'xcore:offer-activity:12ae6f35a055c6f0')) a, decision_object_repository_personalized_offers po where proposedOffers.id LIKE 'xcore:personalized-offer%' and po._id=proposedOffers.id
group by proposedOffers.id, proposedOffers.name, po._experience.decisioning.ranking.priority;
セカンダリ受信者フィードバックイベントデータセット(BCC) bcc-feedback-event-dataset
インターフェイスの名前:AJO セカンダリ受信者フィードバックイベントデータセット(システムデータセット)。 クエリサービスでは、データセットテーブルの名前は ajo_bcc_feedback_event_dataset のままである場合があります。
BCC アーカイブが有効な場合のメール BCC(セカンダリ受信者)メッセージのデータセット。
2 日以内のすべての BCC メッセージに対するクエリ(特定のキャンペーンの場合):
SELECT bcc.*
FROM ajo_bcc_feedback_event_dataset AS bcc
WHERE
bcc._experience.customerJourneyManagement.messageExecution.messageExecutionID = '<message-execution-id>' AND
bcc.timestamp >= now() - INTERVAL '2' day;
フィードバックデータセットを含むクエリで、受信しなかったユーザー(すべてのバウンスと抑制)と、特定のメッセージに対して BCC エントリを持つユーザーを表示します。
SELECT
distinct bcc._experience.customerJourneyManagement.secondaryRecipientDetail.originalRecipientAddress AS OriginalRecipientAddress
FROM ajo_bcc_feedback_event_dataset AS bcc
WHERE
bcc.timestamp > now() - INTERVAL '2' DAY AND bcc._experience.customerJourneyManagement.messageExecution.messageExecutionID = '<message-execution-id>' AND bcc._experience.customerJourneyManagement.secondaryRecipientDetail.originalRecipientAddress != '' AND
(
bcc._experience.customerJourneyManagement.secondaryRecipientDetail.originalRecipientAddress NOT IN (
SELECT distinct mfe._experience.customerJourneyManagement.emailChannelContext.address
FROM ajo_message_feedback_event_dataset AS mfe
WHERE
mfe.timestamp > now() - INTERVAL '2' DAY AND
mfe._experience.customerJourneyManagement.messageExecution.messageExecutionID = '<message-execution-id>' AND
mfe._experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus = 'sent'
)
OR bcc._experience.customerJourneyManagement.secondaryRecipientDetail.originalRecipientAddress IN (
SELECT distinct mfe._experience.customerJourneyManagement.emailChannelContext.address
FROM ajo_message_feedback_event_dataset AS mfe
WHERE
mfe.timestamp > now() - INTERVAL '2' DAY AND
mfe._experience.customerJourneyManagement.messageExecution.messageExecutionID = '<message-execution-id>' AND
mfe._experience.customerJourneyManagement.messageDeliveryfeedback.messageFailure.category = 'async' AND
mfe._experience.customerjourneymanagement.messagedeliveryfeedback.feedbackstatus
エンティティデータセット entity-dataset
インターフェイスでの名前:ajo entity_dataset(システムデータセット)_
エンドユーザーに送信されるメッセージのエンティティメタデータを保存するデータセット。
関連するスキーマは AJO エンティティスキーマです。
このデータセットを使用すると、マーケターが定義したメタデータにアクセスでき、Journey Optimizer のデータセットが外部ツールでレポートを視覚化するためにエクスポートされる際に、レポートに関するより優れたインサイトを得ることができます。 messageID 属性を使用することで、メッセージフィードバックデータセットやエクスペリエンスイベントトラッキングデータセットなどの様々なデータセットをつなぎ合わせて、プロファイルレベルでの送信からトラッキングまでのメッセージ配信の詳細を取得することができます。
重要な注意事項
-
メッセージのエントリは、ジャーニーまたはキャンペーンが公開された後にのみ作成されます。
-
キャンペーン/ジャーニーが公開されてから 30 分後にエントリが表示される場合があります。
レポート内で、特定のジャーニーによって送信されたメールを、それを送信したアクションに従って並べ替えたい場合は、メッセージフィードバックデータセットをエンティティデータセットに結合できます。 使用するフィールドは _experience.decisioning.propositions.scopeDetails.correlationID と _id field in entity dataset です。
campaignActionID値は、キャンペーン内でのみ一意です。 キャンペーンアクションを結合またはレポートする場合は、campaignVersionIDとcampaignActionIDを一緒に使用します。 AJO メッセージ書き出しスキーマ を参照してください。特定のキャンペーンに関連するメッセージテンプレートを取得するのに役立つクエリは次のとおりです。
SELECT
AE._experience.customerJourneyManagement.entities.channelDetails.template
from
ajo_entity_dataset AE
WHERE AE._experience.customerJourneyManagement.entities.campaign.campaignVersionID = 'd7a01136-b113-4ef2-8f59-b6001f7eef6e'
すべてのフィードバックイベントに関連付けられているジャーニー詳細とメール件名を取得するのに役立つクエリは次のとおりです。
SELECT
AE._experience.customerJourneyManagement.entities.journey.journeyActionName,
AE._experience.customerJourneyManagement.entities.journey.journeyActionID,
AE._experience.customerJourneyManagement.entities.journey.journeyVersionID,
AE._experience.customerJourneyManagement.entities.channelDetails.email.subject
from
ajo_entity_dataset AE
INNER JOIN ajo_message_feedback_event_dataset MF ON AE._experience.customerJourneyManagement.entities.channelDetails.messageID = MF._experience.customerJourneyManagement.messageExecution.messageID
WHERE
AE._experience.customerJourneyManagement.entities.channelDetails.channel._id = 'https://ns.adobe.com/xdm/channels/email'
AND MF._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'sent'
AND AE._experience.customerJourneyManagement.entities.journey.journeyVersionID IS NOT NULL
ジャーニーステップイベント、メッセージフィードバックおよびトラッキングデータセットをスティッチして、特定のプロファイルの統計を取得できます。
SELECT
AE._experience.customerJourneyManagement.entities.journey.journeyActionName,
AE._experience.customerJourneyManagement.entities.journey.journeyActionID,
AE._experience.customerJourneyManagement.entities.journey.journeyVersionID,
AE._experience.customerJourneyManagement.entities.channelDetails.email.subject,
JE._EXPERIENCE.JOURNEYORCHESTRATION.STEPEVENTS.PROFILEID,
JE._EXPERIENCE.JOURNEYORCHESTRATION.STEPEVENTS.NODENAME
from
ajo_entity_dataset AE
INNER JOIN ajo_message_feedback_event_dataset MF
ON AE._experience.customerJourneyManagement.entities.channelDetails.messageID = MF._experience.customerJourneyManagement.messageExecution.messageID
INNER JOIN journey_step_events JE
ON AE._experience.customerJourneyManagement.entities.journey.journeyActionID = JE._experience.journeyOrchestration.stepEvents.actionID
WHERE
AE._experience.customerJourneyManagement.entities.channelDetails.channel._id = 'https://ns.adobe.com/xdm/channels/email'
AND MF._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus = 'sent'
AND AE._experience.customerJourneyManagement.entities.journey.journeyVersionID IS NOT NULL
カスタムチャネル配信データ custom-channel-delivery-data
カスタムチャネル を介して送信されたメッセージは、2つのデータセットで説明されます。 エンティティデータセット には、カスタムチャネルの名前やエンドポイントなどのメッセージの詳細が格納されます。 メッセージフィードバックイベントデータセット には、各受信者の配信結果が格納されます。
これらのデータセットを使用して、配信の検証、エラーの調査、カスタムチャネルアクティビティのレポートを行います。 これらを組み合わせるには、messageID フィールドの2つのデータセットを結合します。
カスタムチャネルに使用するフィールド custom-channel-fields
次のフィールドは、カスタムチャネルメッセージを識別および分析するのに役立ちます。
エンティティ データセットのフィールドは_experience.customerJourneyManagement.entities.channelDetails未満です。
customChannel.namecustomChannel.endpointcustomChannel.httpMethodchannelConfigIDchannel._idメッセージフィードバックイベントデータセットのフィールドは_experience.customerJourneyManagement.messageDeliveryfeedback未満です。
feedbackStatussentは、エンドポイントが2xxの応答コードを返したことを意味します。responseCoderesponseDurationMillismessageFailure フィールドは空で、responseCodeには2xx値が含まれます。カスタムチャネルクエリの例 custom-channel-queries
次のクエリは、特定のチャネル設定を使用するカスタムチャネルメッセージのリストです。 <CHANNEL_CONFIG_ID>をチャネル設定のIDに置き換えます。
SELECT
AE._experience.customerJourneyManagement.entities.channelDetails.messageID AS message_id,
AE._experience.customerJourneyManagement.entities.channelDetails.channelConfigName AS channel_config,
AE._experience.customerJourneyManagement.entities.channelDetails.customChannel.name AS custom_channel_name,
AE._experience.customerJourneyManagement.entities.channelDetails.customChannel.endpoint AS endpoint,
AE._experience.customerJourneyManagement.entities.channelDetails.customChannel.httpMethod AS http_method,
AE._experience.customerJourneyManagement.entities.channelDetails.messagePublishedAt AS published_at
FROM
ajo_entity_dataset AE
WHERE
AE._experience.customerJourneyManagement.entities.channelDetails.channelConfigID = '<CHANNEL_CONFIG_ID>'
AND AE._experience.customerJourneyManagement.entities.channelDetails.customChannel IS NOT NULL
ORDER BY
published_at DESC
次のクエリは、エンドポイントの応答コードと応答時間を含む、キャンペーンの失敗した配信とバウンスした配信を検索します。 <CAMPAIGN_ID>をキャンペーンのIDに置き換えます。
SELECT
MF.timestamp,
MF._experience.customerJourneyManagement.messageExecution.messageExecutionID AS execution_id,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus AS status,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.messageFailure.code AS failure_code,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.messageFailure.reason AS failure_reason,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.responseCode AS http_status,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.responseDurationMillis AS latency_ms
FROM
ajo_message_feedback_event_dataset MF
WHERE
MF._experience.customerJourneyManagement.messageExecution.campaignID = '<CAMPAIGN_ID>'
AND MF._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus IN ('error', 'bounce')
ORDER BY
MF.timestamp DESC
次のクエリは、キャンペーンのカスタムチャネルメッセージを、messageID フィールドの配信フィードバックと結合します。 <CAMPAIGN_ID>をキャンペーンのIDに置き換えます。
SELECT
AE._experience.customerJourneyManagement.entities.campaign.name AS campaign_name,
AE._experience.customerJourneyManagement.entities.channelDetails.customChannel.name AS custom_channel_name,
AE._experience.customerJourneyManagement.entities.channelDetails.customChannel.endpoint AS endpoint,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus AS status,
MF._experience.customerJourneyManagement.messageDeliveryfeedback.responseCode AS http_status
FROM
ajo_message_feedback_event_dataset MF
INNER JOIN ajo_entity_dataset AE
ON MF._experience.customerJourneyManagement.messageExecution.messageID = AE._experience.customerJourneyManagement.entities.channelDetails.messageID
WHERE
MF._experience.customerJourneyManagement.messageExecution.campaignID = '<CAMPAIGN_ID>'
AND AE._experience.customerJourneyManagement.entities.channelDetails.customChannel IS NOT NULL
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: This page lists Adobe Journey Optimizer datasets with SQL query examples for each one, and explains how to choose the correct dataset and what to check when a query returns “Table not provisioned for dataset”.
Intents:
- Choose the dataset that matches the type of action to analyze in a journey: message-delivery feedback, email interaction events, or custom action execution.
- Count email interactions (opens, clicks) or email feedback statuses (sent, bounce) for a given message or by message for a given journey.
- Distinguish test executions from non-test executions in the Message Feedback Event Dataset with the
isTestExecutionfield. - Identify email addresses wrongly marked as bounces (quarantined) for specific domains during a timeframe after an Internet Service Provider (ISP) outage.
- Get the journey details, message template or email subject of messages from the Entity Dataset, joined with other datasets.
- Validate custom channel deliveries, investigate failures and report on custom channel activity with the Entity Dataset and the Message Feedback Event Dataset.
Glossary:
- AJO Email Tracking Experience Event Dataset (product-specific): System dataset for ingesting email tracking experience events from Journey Optimizer. The related schema is AJO Email Tracking Experience Event Schema. The query examples use the table
ajo_email_tracking_experience_event_dataset. - AJO Message Feedback Event Dataset (product-specific): Stores message delivery feedback generated by Adobe Journey Optimizer, across message channels including Email, Mobile message, Direct Mail, and custom channels. Feedback events can be used for reporting and audience-creation use cases. The query examples use the table
ajo_message_feedback_event_dataset. - AJO Push Tracking Experience Event Dataset (product-specific): Dataset for ingesting mobile tracking experience events for push from Journey Optimizer. The related schema is AJO Push Tracking Experience Event Schema.
- Journey Step Events (system dataset) (product-specific): Dataset for ingesting step events in the journey. The related schema is Journey Step Event schema for Journey Orchestration. The query examples use the table
journey_step_events. - ODE DecisionEvents (system dataset) (product-specific): The Decisioning event dataset, for ingesting offer propositions to the users. The related schema is ODE DecisionEvents.
- AJO Secondary Recipient Feedback Event Dataset (system dataset) (product-specific): Dataset for email BCC (secondary recipient) messages when BCC archiving is enabled.
- ajo_entity_dataset (system dataset) (product-specific): The Entity Dataset, which stores entity metadata for messages sent to the end user and gives access to marketer defined metadata. The related schema is AJO Entity Schema.
isTestExecution: Field used to distinguish test executions from non-test executions when the field is populated.truemeans the message was part of a test execution,falsemeans it was not, andNULLor missing means no value was recorded for the field.sent: ThefeedbackStatusvalue used for successful message delivery outcomes in Adobe Journey Optimizer;deliveredis not used in Message Feedback Event datasets. For a custom channel,sentmeans that the endpoint returned a 2xx response code.
Guardrails:
- Channel-specific context fields of the Message Feedback Event Dataset are not guaranteed to be populated on every event. Use message execution identifiers, feedback status, failure details, timestamps, and identity information as the primary correlation fields.
- In some journeys,
messageIDmay not be unique for each individual delivery: if a journey re-sends the same action to the same profile, the samemessageIDcan be reused. To track or attribute events at the individual send level, combine thejourneyVersionID,journeyActionID, andbatchInstanceID(for batch journeys) oridentityMapfields. - The
identityMapin the Message Feedback Event Dataset reflects only the identity used at runtime. For push notifications, asentevent relies only on the ECID linked to the push token used to send the notification, while anexclusionevent could rely on a custom identity. For additional namespaces (for example custom IDs), join the feedback records with a profile-related dataset. - A successful custom action HTTP call confirms only that the call completed. It does not confirm that the external system delivered a message.
- In the Entity Dataset, an entry for a message is created only after the journey or campaign is published, and you may see the entry 30 minutes after the publication of the campaign or journey.
- For the time being, the Entity Dataset has two entries for each message publication, for future compatibility reasons. This does not impact your ability to use join queries across datasets.
- The
campaignActionIDvalue is unique only within a campaign. When you join or report on campaign actions, usecampaignVersionIDandcampaignActionIDtogether. - In the Entity Dataset,
customChannel.name,customChannel.endpointandcustomChannel.httpMethodare populated only for custom channels. In the Message Feedback Event Dataset,responseCodeandresponseDurationMillisare populated only for custom channels.
Terminology:
- Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
- Canonical name: Internet Service Provider — Acronym: ISP
- Canonical name: AJO Message Feedback Event Dataset — variants: Message Feedback Event Dataset, Message Feedback dataset,
ajo_message_feedback_event_dataset - Canonical name: Journey Step Events (system dataset) — variants: Journey Step Event,
journey_step_events - Canonical name: AJO Secondary Recipient Feedback Event Dataset — variants: Secondary recipient feedback event dataset (BCC),
ajo_bcc_feedback_event_dataset - Canonical name: Entity Dataset — variants: Entity dataset,
ajo_entity_dataset - Canonical name: ODE DecisionEvents — variants: Decisioning Event Dataset
FAQ:
- Which dataset do I query to check message-delivery feedback for native Journey Optimizer channel actions? Use the Message Feedback Event Dataset, for example for
sentorbouncestatuses. For email interaction events such as opens and clicks, use the Email Tracking Experience Event Dataset. - How do I verify that Journey Optimizer executed a custom action? Use the Journey Step Event dataset, which lets you inspect the execution status, latency, and error details of the custom action. To confirm downstream delivery, check the external system’s logs or reporting.
- Does “Table not provisioned for dataset” mean the dataset failed to provision? Not necessarily. Check the steps listed under Troubleshooting before contacting Adobe Support.
- Should NULL values of
isTestExecutionbe treated asfalse? No. TreatNULLor missing as unknown unless a channel- and time-specific mapping has been validated, and do not assume that every null value represents a production execution. A validated mapping is applied in a downstream reporting view, with the rule documented explicitly. - How do I combine the Entity Dataset and the Message Feedback Event Dataset for custom channel messages? Join the two datasets on the
messageIDfield. - Can I sort the emails sent by a specific journey according to the action that sent them? Yes. Join the Message Feedback dataset with the Entity dataset, using the fields
_experience.decisioning.propositions.scopeDetails.correlationIDand_id field in entity dataset.
Troubleshooting:
-
Table not provisioned for dataset: This message does not necessarily mean the dataset failed to provision. Before contacting Adobe Support, check the following:
- In the Datasets workspace, enable Show system datasets. System-generated datasets are hidden by default.
- Confirm that the exact table name used in the query matches the table name shown in the Datasets workspace for your sandbox.
- Confirm that the journey action type matches the dataset you are querying.
- For datasets that use batch ingestion, such as the Message Feedback Event Dataset, allow up to two hours for data to become available.
- For custom actions, query the Journey Step Event dataset rather than expecting a Message Feedback Event record for the external delivery.
- If the dataset should contain data and the table remains unavailable, collect the sandbox name, dataset name, query ID, and timestamp before contacting Adobe Support.
-
Table not provisioned for dataset (CJM Consent Service Dataset or CJM Push Profile Dataset): These system datasets, used by Journey Optimizer for consent and push profile data, are not available as queryable tables in Query Service. This is expected and does not indicate a provisioning failure.
Examples:
- Message Feedback Event Dataset: a domain level report sorted by top domains, with domain name, messages sent and bounces, for the email channel (
channel._id = 'https://ns.adobe.com/xdm/channels/email'). - Message Feedback Event Dataset: email sends on a daily basis, the hard bounce rate at aggregate level, and permanent errors grouped by bounce code.
- Message Feedback Event Dataset: find whether a particular email address received an email and, if not, the error and bounce type, over the last 7 days.
- Message Feedback Event Dataset, after an ISP outage: list bounced addresses for a domain between two dates in the format
YYYY-MM-DD HH:MM:SS, then remove those addresses from the Journey Optimizer suppression list. - Journey Step Events: the breakdown of step entered counts by
nodeIDandnodeLabelfor a given journey;nodeIDis included becausenodeLabelcan be the same for different journey nodes. - AJO Secondary Recipient Feedback Event Dataset: all BCC messages within 2 days for a particular campaign, using
messageExecutionID. - Custom channels: list the custom channel messages that use a specific channel configuration (
<CHANNEL_CONFIG_ID>), or find the failed and bounced deliveries of a campaign (<CAMPAIGN_ID>) with the response code and response time of the endpoint.
Best practices:
- Before building a query on
isTestExecution, confirm the current field path, data type, and description in the Adobe Journey Optimizer Schema Reference. - Test field availability by channel and preserve nulls rather than treating them as empty strings or inferred values, because some historical or channel-specific records may not populate every message-context field.
- Before running the custom channel queries, confirm the exact table names in the Datasets workspace of your sandbox.
Related pages:
- For commonly used queries on Journey Step Events: examples to query Journey Step Events
- To check that messages are sent successfully in a live journey: troubleshoot your live journey execution
- To show system datasets in the Datasets workspace: access datasets
- To remove addresses identified after an ISP outage from the suppression list: Manage the suppression list
- To troubleshoot discarded event types in journey_step_events: troubleshoot discarded event types in journey_step_events
- For
campaignVersionIDandcampaignActionID: AJO Message Export schema - For messages sent through a custom channel: custom channel
Personas:
- developer: Can query the
ajo_message_feedback_event_datasettable to show the counts of different email feedback status (sent, bounce) for a given message. Can group message feedback records by theisTestExecutionfield andfeedbackStatus, preserving null or missingisTestExecutionvalues. The page states that this dataset uses batch ingestion, so data may be delayed by up to 2 hours. Where: “Message feedback event dataset”. - admin: Can enable Show system datasets in the Datasets workspace, because system-generated datasets are hidden by default. Can confirm that the exact table name used in a query matches the table name shown in the Datasets workspace for the sandbox. The page states that the CJM Consent Service Dataset and CJM Push Profile Dataset are not available as queryable tables in Query Service. Where: “If a query returns “Table not provisioned for dataset””.
Onboarding:
- Level: Experienced
- First minimal step: Before running a query, confirm which dataset matches the type of action you want to analyze in your journey.