busy-air-96466
03/17/2023, 5:18 PMSELECT
user_id,
user_pseudo_id as anonymous_id,
TIMESTAMP_MICROS(event_timestamp) as timestamp
FROM
``analytics_xxx.events_*``
WHERE
event_name = 'Main CTA'
AND _TABLE_SUFFIX BETWEEN '20230313' AND '20230319'
busy-air-96466
03/17/2023, 5:29 PMSELECT
user_id,
user_pseudo_id as anonymous_id,
TIMESTAMP_MICROS(event_timestamp) as timestamp,
1 as value
FROM
``analytics_xxxxxx.events_*``
WHERE
event_name = 'Main CTA'
AND _TABLE_SUFFIX BETWEEN '20230313' AND '20230319'
helpful-application-7107
03/17/2023, 5:40 PMhelpful-application-7107
03/17/2023, 5:40 PMSUM(value)
under the hood to get the total per user (or another custom aggregation if you specify one).busy-air-96466
03/17/2023, 5:41 PMbusy-air-96466
03/17/2023, 5:44 PMhelpful-application-7107
03/17/2023, 5:45 PMbusy-air-96466
03/17/2023, 5:47 PM