-
Ensuring accurate transmission of Firebase item-specific custom parameters in the console
Hey there, I’ve been trying to use the Firebase iOS SDK version
10.7.0
to send item-scoped custom parameters. I know this feature was added in version10.6.0
.There’s not a ton of details about it in the official docs, but I guessed that it would be similar to sending an event-scoped custom parameter. For the event-scoped ones, I would just add a new key in the logEvent parameters dictionary, like this:
let params = [ "some_custom_key": "someValue" ] Analytics.logEvent(AnalyticsEventAddToCart, parameters: params)
So I figured this would work in the same way. I added a custom key to the item dictionary, which I sent in the items array. It looked like this:
let params = [ AnalyticsParameterItems: [[ AnalyticsParameterItemID: "someID", AnalyticsParameterItemCategory: "someCategory", AnalyticsParameterItemName: "someName", AnalyticsParameterQuantity: 1, AnalyticsParameterItemBrand: "someBrand", AnalyticsParameterItemVariant: "someVariant" "param_item_custom_id": "someCustomId", // This one being the custom parameter ]] ] Analytics.logEvent(AnalyticsEventAddToCart, parameters: params)
However, I can’t seem to verify that this is working correctly. There’s no changes on the Debug View, and I’m not getting anything back from the explorer tab queries.
When I check the Debug View, I can see the events and items, but none of the custom item-scoped parameters are showing up.
I also tried to add a custom dimension (even though this wasn’t needed for the event-scoped parameters), but it didn’t change anything.
I waited for 48 hours as suggested, but still no luck. Both Debug View and the explore tab are still not showing my item – it’s just showing as
(not set)
.I doubt they’d release a feature that couldn’t be verified on the console, so I’m guessing the mistake here has been on my end. Either I’m sending the custom parameters incorrectly, or I’m looking in the wrong place to validate them on the console.
Could anyone point out what I’m doing wrong? How would I properly send these item-scoped custom parameters and where should I look to check my implementation in the Firebase console?
Log in to reply.