FortTell
FortTell

Reputation: 105

Events sent with Measurement Protocol do not set active users

I am trying to send events from a Telegram bot (Java backend) to Google Analytics using Measurement Protocol V4. The event currently looks like this:

{
    "client_id": "<telegram_chat_id>",
    "events": [
        {
            "name": "tg_bot_command",
            "params": {
                "command_type": "HELP"
            }
        }
    ]
}

After the event is sent, I see the event and its property on the real-time overview page in the "Event count by Event name" card, but the client_id property is nowhere to be seen. And the "Users in last 30 minutes" card remains empty. I also tried adding the user_id parameter to the events, but it also had no effect.

How do I send those events so that they show that users are active?

G-Analytics page showing logged events, but no users

Upvotes: 0

Views: 597

Answers (1)

Kirill
Kirill

Reputation: 1539

Solution: add engagement_time_msec to event properties

enter image description here

Upvotes: 4

Related Questions