<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: adobe.target.trackEvent() failing while getOffer() is working in Adobe Target Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437371#M7333</link>
    <description>&lt;P&gt;&lt;LI-USER uid="17376600"&gt;&lt;/LI-USER&gt;&amp;nbsp;That seems the issue but I couldn't tackle which extension that will be in my case.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 10:26:52 GMT</pubDate>
    <dc:creator>Khushboo_Kalia</dc:creator>
    <dc:date>2022-01-18T10:26:52Z</dc:date>
    <item>
      <title>adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436265#M7280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to track some CTAs and I am using trackEvent method for that. But when I am clicking on the button, the request goes into 400 status.&lt;/P&gt;&lt;P&gt;The workaround to this I opted is to go for getOffer() method but just curious to see the reason behind failure of trackEvent method. Any help will be much appreciated. thanks!&lt;/P&gt;&lt;P&gt;Below is the code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;el.addEventListener('click', function (e) {
                    e.preventDefault();
                    console.log("CTA clicked")
                    adobe.target.trackEvent({
                        "mbox": "carouselCTA"
                    });
                    // adobe.target.getOffer({
                    //     "mbox": "carouselCTA",
                    //     "success": function (offer) {
                    //         adobe.target.applyOffer({
                    //             "mbox": "carouselCTA",
                    //             "offer": offer
                    //         });
                    //     },
                    //     "error": function (status, error) {
                    //         console.log('Error', status, error);
                    //     }
                    // });
                    setTimeout(function () {
                        window.open(el.href, '_blank');
                    }, 1000);
                });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Target version - 2.3.2&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:11:53 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436265#M7280</guid>
      <dc:creator>Khushboo_Kalia</dc:creator>
      <dc:date>2022-01-05T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436389#M7286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="15214424"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below code at my end seems is working fine for me with target version 2.7.0.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const el = document.getElementByClassName("hero_btn")[0];
el.addEventListener('click', function (e) {
                    e.preventDefault();
                    alert("CTA clicked")
                    adobe.target.trackEvent({
                        "mbox": "carouselCTA"
                    });
                    setTimeout(function () {
                        window.open(el.href, '_blank');
                    }, 1000);
                });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see there was some issues with version 2.1.0 for trackEvent function however that got fixed in later release so shouldn't be the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If still having problem then it's worth to try to upgrade target version in lower environment and check again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:09:10 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436389#M7286</guid>
      <dc:creator>Gokul_Agiwal</dc:creator>
      <dc:date>2022-01-06T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436477#M7295</link>
      <description>&lt;P&gt;&lt;LI-USER uid="15214424"&gt;&lt;/LI-USER&gt;&amp;nbsp; the code seems to be fine. I have seen such issues related to the browser extensions or network settings.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 09:56:26 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/436477#M7295</guid>
      <dc:creator>Gaurav_Singh</dc:creator>
      <dc:date>2022-01-07T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437371#M7333</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17376600"&gt;&lt;/LI-USER&gt;&amp;nbsp;That seems the issue but I couldn't tackle which extension that will be in my case.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:26:52 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437371#M7333</guid>
      <dc:creator>Khushboo_Kalia</dc:creator>
      <dc:date>2022-01-18T10:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437374#M7334</link>
      <description>&lt;P&gt;&lt;LI-USER uid="13387685"&gt;&lt;/LI-USER&gt;&amp;nbsp;thanks for your response. I'll try upgrading the version.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:31:23 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437374#M7334</guid>
      <dc:creator>Khushboo_Kalia</dc:creator>
      <dc:date>2022-01-18T10:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: adobe.target.trackEvent() failing while getOffer() is working</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437376#M7335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="15214424"&gt;&lt;/LI-USER&gt;&amp;nbsp;Sometimes Adobe experience cloud debugger (old) browser extension make an issues with so just try disabling and see if that works for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 10:35:10 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-trackevent-failing-while-getoffer-is-working/m-p/437376#M7335</guid>
      <dc:creator>Gokul_Agiwal</dc:creator>
      <dc:date>2022-01-18T10:35:10Z</dc:date>
    </item>
  </channel>
</rss>

