firebase-ios-sdk
firebase-ios-sdk copied to clipboard
Missing parameter "content_id" for recommended analytics event "select_content"
Description
I couldn't find the variable AnalyticsParameterContentId for the recommended event AnalyticsEventSelectContent.
Here is the documentation.
Reproducing the issue
Just install Firebase, and try to reach for AnalyticsParameterContentId which doesn't exist.
Firebase SDK Version
10.25
Xcode Version
15.4
Installation Method
Swift Package Manager
Firebase Product(s)
Analytics
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @Kalzem, based on the docs you shared, it seems like the select_content is only for Google Tag. For Firebase, AnalyticsEventSelectContent has only 2 params: AnalyticsParameterContentType and AnalyticsParameterItemID.
@rizafran Thank you for your reply.
I still believe there is an issue somewhere.
On Firebase console > Events screen as displayed on this screenshot
When I click on "Recommended Games (Event)" next to "level_up" for example, the URL is this one: GA4 - Recommended events
And on this page, if I click on another recommended event such as "select_content" (in the "For games" section), I end up on the initial link of my first post.
The theories I can think of are:
- There is a problem with the links on Firebase console which redirect to the wrong documentation.
- There is an issue with the Firebase Swift SDK which implemented the wrong parameter ("item_id" instead of "content_id").
- There is no problem as both parameters ("item_id" and "content_id") are valid.
Thanks for waiting, @Kalzem. Per checking with the engineers, both content_id and item_id are valid params to the select_content and share events. In the future, we'll update the documentation to clarify the recommendation and consider backward compatible updates.