Expand my Community achievements bar.

Bulk Data Insertion API - User Agent?

Avatar

Level 2

I've experienced a downtime in purchase tracking in analytics on my website due to a bug in a release, and I've been looking at solutions to recover the data that was missing during the tracking downtime. I was still tracking most of the information on my purchase page, but did not track the specific purchase event.

 

I've had a look and it looks like I can use the bulk data insertion API to add the missed bookings back in, as I was still tracking purchase ID I will be inserting in the correct amount, and I can retrieve the rest of the details of the booking from other sources.

My only question is, in the BDIAPI's required fields, it states that userAgent is required. I can get the rest of the fields from a data warehouse extract, but I was not tracking user agent so that information is lost - what is the purpose of user agent in this insertion? Would there be any issues introduced if I just used the same user agent for all uploads, as I only want to use this to set the purchase event?

Thanks in advance

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi @Tom_Baty ,

you can specify the User Agent as you wish. I would use a non-standard user agent name that identifies entries which have actually been onboarded from this external source.
This also helps with the verification/validation of the data in Analytics dashboards.

Cheers from Switzerland!


Avatar

Level 4

@Tom_BatyIn case your company integrated with marketo or any CRM you can get user agent details against the Purchase ID by pulling activity log details.

While importing to analytics, User agent column value should be in below format.

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Amruthesh_AG_1-1727711401872.png