google-analytics-rails icon indicating copy to clipboard operation
google-analytics-rails copied to clipboard

Support Track UserId

Open guisantosbr opened this issue 6 years ago • 1 comments

Support for track userId.

ga('set', 'userId', 'USER_ID'); // Defina o ID de usuário usando o user_id conectado.

guisantosbr avatar Sep 12 '18 18:09 guisantosbr

Does this work for you?

analytics_init(setup: {uid: 10})

if you're not using the view helpers,

GA::Events::SetupAnalytics.new(tracker, {uid: 10})

spodlecki avatar Sep 12 '18 18:09 spodlecki