Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event category and label not sent when using native Google Analytics SDK #50

Closed
pierreavizou opened this issue Apr 30, 2020 · 0 comments

Comments

@pierreavizou
Copy link
Contributor

When using Rudder's JS SDK with Google Analytics native SDK, event tracking does not send 'category' and 'label' to Google Analytics. Instead, the value of the event name is passed for all three parameters.

When using the code below

rudderanalytics.track('event_action', {
      category: 'event_cat',
      label: 'event_label',
    });

we would expect that the corresponding values for 'category' and 'label' be sent to Analytics. However, 'event_action' is sent as the value for all three parameters.

This is illustrated on the screenshot below, after calling the exact code shown above:

Capture d’écran 2020-04-30 à 19 43 16

When using the Analytics destination in cloud mode, everything works fine and the correct values are sent and show up in Google Analytics realtime dashboard.

pierreavizou added a commit to pierreavizou/rudder-sdk-js that referenced this issue Apr 30, 2020
sayan-rudder added a commit that referenced this issue May 1, 2020
Addresses issue #50: populate 'category' and 'label' fields in GA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant