firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Missing parameter "content_id" for recommended analytics event "select_content"

Open Kalzem opened this issue 1 year ago • 4 comments

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!

Kalzem avatar May 28 '24 09:05 Kalzem

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar May 28 '24 09:05 google-oss-bot

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 avatar May 28 '24 12:05 rizafran

@rizafran Thank you for your reply.

I still believe there is an issue somewhere.

On Firebase console > Events screen as displayed on this screenshot image

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:

  1. There is a problem with the links on Firebase console which redirect to the wrong documentation.
  2. There is an issue with the Firebase Swift SDK which implemented the wrong parameter ("item_id" instead of "content_id").
  3. There is no problem as both parameters ("item_id" and "content_id") are valid.

Kalzem avatar May 28 '24 15:05 Kalzem

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.

rizafran avatar Jun 06 '24 10:06 rizafran