Hiya,
Its pretty simple using gatewayscript, have a look at the doc page here:
Modifying analytics API event data
Ibm |
remove preview |
|
Modifying analytics API event data |
How to modify API event data before it is stored. |
View this on Ibm > |
|
|
Just make sure you add the custom data inside the custom_data object, otherwise it will not be indexed or searchable in analytics.
Cheers,
Chris
------------------------------
Chris Dudley
------------------------------
Original Message:
Sent: Sun February 18, 2024 08:56 AM
From: Team API
Subject: Add custom attribute in Analytics
Hi everyone (Chris)...
Found this old thread - an we are curious as well :)
We are on 10.0.5 and have not found a way to add custom data from our gateway scripts to analytics.. We are probably blind when it comes to read through the documentation, he he..
Any help on where to find some information would be wonderful.
Thanks in advance.
------------------------------
Team API
Original Message:
Sent: Thu May 11, 2023 03:05 AM
From: Chris Dudley
Subject: Add custom attribute in Analytics
I am afraid support for APIC v2018 has now ended. I strongly advise you to upgrade to APIC 10.0.5 immediately.
Adding custom data to analytics is possible in 10.0.5 but that process will not work in v2018.
------------------------------
Chris Dudley
Original Message:
Sent: Wed May 10, 2023 04:23 PM
From: Sam IBMer
Subject: Add custom attribute in Analytics
I am using custom security. I send request in API Connect to backend server. I want to hide cookie and authorization from response.
First, not sure the response header includes all values from request header, which is security breach. So i had to add javascript to explicitly remove header values for authorization andx-api-key.
Second, i woul like add backend server name in analytics, to help in troubleshooting, but not include server name in response header. Is that feasible
I am using 2018
------------------------------
Sam IBMer
------------------------------