adobe / alloy

Alloy is the web SDK for the Adobe Experience Platform.
Apache License 2.0
94 stars 48 forks source link

No target data returned #1021

Open dsws opened 1 year ago

dsws commented 1 year ago

We also have a ticket open with Adobe for this issue #E-000984379

Expected Behaviour

Adobe Target data to return in propositions?

Actual Behaviour

No target data being returned

Reproduce Scenario (including but not limited to)

import React, { useEffect } from "react";

const AbTesting = ({ children }) => {
  useEffect(() => {
    initAdobeSDK();
    return () => {};
  }, []);
  return children;
};
export default AbTesting;

const initAdobeSDK = () => {
  import("@adobe/alloy").then((alloy) => {
    const instance = alloy.createInstance({ name: "alloy" });
    instance("configure", {
      edgeConfigId: "xxxx-xxx-xxx-xxx",
      orgId: "xxxxxx@AdobeOrg",
    });

    instance("sendEvent", {
      renderDecisions: true,
      xdm: {
        commerce: {
          order: {
            purchaseID: "a8g784hjq1mnp3",
            purchaseOrderNumber: "VAU3123",
            currencyCode: "USD",
            priceTotal: 999.98,
          },
        },
      },
    })
      .then(function (result) {})
      .catch(function (error) {});
  });
};

Steps to Reproduce

  1. Create a Datastream with service Target
  2. Init SDK
  3. Send event with renderDecisions true

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

jfkhoury commented 1 year ago

Hi @dsws, customer support can better help you with this. Did you hear back yet?

Also, do you have a Target instance that works with the at.js SDK, but didn't work with the Web SDK?

jonsnyder commented 1 year ago

My understanding is that you need a datastream with no analytics configured, and match with a target offer that is defined with an analytics measurement.

dsws commented 1 year ago

Hey thanks for the response but the customer support is suggesting me to connect with a consulting person. @jonsnyder I will try your suggestion

dsws commented 1 year ago

My understanding is that you need a datastream with no analytics configured, and match with a target offer that is defined with an analytics measurement.

Yes exactly

ricmello commented 5 months ago

Were you able to find a solution or workaround?