Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Data Insertion API Trouble

Avatar

Level 1

Hi All.

I have followed the various tutorials and documentation, but still seem to be missing something... I can't seem to verify that my data is being collected, for which I am using the Content Real-Time Report.

For example, I am POSTing the following XML:

<?xml version="1.0"?>

<request>

  <sc_xml_ver>1.0</sc_xml_ver>

  <pageUrl>http://test.domain/dyYdQi</pageUrl>

  <referrer>http://test.domain/referrerforanalytics</referrer>

  <ipAddress>54.159.118.146</ipAddress>

  <pageName>Test Page</pageName>

  <userAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0 (FlipboardProxy/1.1; +http://flipboard.com/browserproxy)</userAgent>

  <language>en-us,en;q=0.5</language>

  <visitorID>1286556420912345678</visitorID>

  <timestamp>2017-07-17T17:28:42</timestamp>

  <reportSuiteID>[RSID]</reportSuiteID>

</request>

To the URL:

https://[NAMESPACE].sc.omtrdc.net/b/ss//6

with the Content-Length header set to the byte length of the XML. I receive the result:

<?xml version="1.0" encoding="UTF-8"?>

<status>SUCCESS</status>

I receive the documented errors when I do things like remove pagename and pageurl:

<?xml version="1.0" encoding="UTF-8"?>

<status>FAILURE</status>

<reason>NO pagename OR pageurl</reason>

Unfortunately, I see no activity in Real-Time. Note the following:

  • I DO see activity with regularly instrumented pages, so I know data is being processed.
  • I have tried a number of permutations of differing timestamp formats and formats/content in other elements (no dice).
  • It's almost certainly a n00b issue I have overlooked... I just don't see it
  • Thanks for your help in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Since this is an older post, I'm assuming you've solved this issue. Incase others find this post, I'll post the link to the documentation below:

https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-insertion-api/index.md

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Since this is an older post, I'm assuming you've solved this issue. Incase others find this post, I'll post the link to the documentation below:

https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-insertion-api/index.md