Folks! I'm trying to send something like this, but...
# support
p
Folks! I'm trying to send something like this, but I cannot see it in GA, and I'm quite in a dead end:
Copy code
rudder_analytics.identify(
    user_id='lerele',
    traits={
        'random_id': uuid.uuid4().hex,                         # custom dimension
        'instance_id': random.choice(['i1', 'i2', 'i3'])       # custom dimension
})
rudder_analytics.track(
    user_id='lerele',
    event='Test Stats',
    properties={
        'category': "MyInstance",
        'label': "num_projects",
        'value': random.randrange(50,80)
})
I don't understand quite well the documentation, so I looked at the source code and I'm using kwargs to be sure. I got to see "num_projects" but I cannot see "random_id" or "instance_id". On the other hand, using the `hit builder`provided by google analytics, I can succesfully send hits with custom data. Could you give me any hint on how to go on? thanks!
b
@lemon-megabyte-87173 and @careful-actor-82241 are the GA experts on our integrations team
p
šŸ‘‹ hi!
b
(they might be a bit to respond - late where they are šŸ™‚ )
p
oh, it's definitely late for me as well; in which timezone are they? maybe it's also better for me
g
India
p
ok! then I'll try again tomorrow; thanks!
l
hi did you enable
server side identify
slider and corresponding event action and category in GA settings on Rudder dashboard. By default, we don't pass identify calls to GA
p
I didn't enable this, cause I'm using more than one event category; but I'm passing them explicit as you can see in my snippet
l
your track calls event category and label looks good. but for identify you need to enable
server side identify
slider on our Rudder UI control plane
p
ok! I'll check it; thanks!
l
one more note: we presently don't map traits to custom dimensions/metrics in Google Analytics(GA) cloud mode. We only map matching properties keys (track call).
p
thanks for the note @lemon-megabyte-87173 could you help me understand this snippet? (taken from the official documentation):
Copy code
rudderanalytics.identify({
Gender: 'Female'
});

rudderanalytics.track('Viewed History');
I'm a bit confused with this. Gender is a custom dimension, but it's in traits (afaik traits go in the identify call). thanks!
l
You are right. Gender is a trait here. For Rudder, everything is a either a trait (identify and group calls) or a property (track/page/screen etc) Custom dimension and metrics are GA specific terms. In our GA transformers, we map the properties to custom dimension/metric if we find a matching key as configured in Rudder GA settings page in control plane UI
p
we have custom metrics and dimensions in the configuration (and they exist in GA admin), but we don't get those data in GA...
l
can you explain me your setup a bit more? You have custom dimensions and metrics on GA destination in https://app.rudderstack.com ?
p
sure! My setup consists on: my code using rudder-sdk-python. Each 24h sends some data about the platform (packages versions, total projects) rudder engine source (the former), destination: GA. Tracking id, custom metrics and dimensions configured in the public UI configurator google analytics through the admin, I created the custom metrics and dimensions used in the rudder configuration. My doubts: • I don't really understand how to send data. Not sure if I'm configuring rudder wrong, if I'm sending bad data to GA, if I'm sending wrongly with the sdk, or if its a bug of rudder • I'm not sure how to send data so I can visualize in the panels of GA: can I see the progression of projects of an specific instance? the total amount of some metric (through all the instances)? I'm not even sure if GA is suitable for that In this moment, I'm kind of giving up with GA, and I'm gonna try postgres + graphana, maybe it's more successful. Wish me luck! šŸ’Ŗ
l
Sure..would also love to have you successfully send data to GA :) Are you hosting the rudder server at your end or using our hosted service? 1. If you are hosting yourself, can you send me the entries in your rt_jobs_xx table. The GA specific payloads will be the rows that have custom_val column set as
GA
. 2. Can you also provide me your email with which you signed up on https://app.rudderstack.com
p
Copy code
jobsdb=# select * from rt_jobs_1;
 job_id | uuid | user_id | parameters | custom_val | event_payload | created_at | expire_at 
--------+------+---------+------------+------------+---------------+------------+-----------
(0 rows)

jobsdb=# select * from batch_rt_jobs_1;
 job_id | uuid | user_id | parameters | custom_val | event_payload | created_at | expire_at 
--------+------+---------+------------+------------+---------------+------------+-----------
(0 rows)
šŸ¤”
l
okay can you check if there are rows in gw_jobs_xx ?