happy-lamp-67598
01/23/2024, 8:06 AMbrief-honey-45610
01/23/2024, 9:13 AMexperiment_viewed
event through the dataLayer inside of the trackingCallback?
Can you send me a screenshot or code snippet of the trackingCallback?brief-honey-45610
01/23/2024, 9:13 AMexperiment_viewed
event is present in your BigQuery dataset?happy-lamp-67598
01/23/2024, 9:26 AMhappy-lamp-67598
01/30/2024, 7:05 AMgrowthBook = new GrowthBook({
enableDevMode,
trackingCallback: (experiment, result) => {
dispatch(`${GENERAL}/trackGoogleAction`, {
payload: {
event: 'experiment_viewed',
event_category: 'experiment',
experiment_id: experiment.key,
variation_id: result.variationId,
},
});
},
happy-lamp-67598
01/30/2024, 7:07 AMSELECT
user_pseudo_id as anonymous_id,
TIMESTAMP_MICROS(event_timestamp) as timestamp,
experiment_id_param.value.string_value AS experiment_id,
variation_id_param.value.int_value AS variation_id,
geo.country as country,
traffic_source.source as source,
traffic_source.medium as medium,
device.category as device,
device.web_info.browser as browser,
device.operating_system as os
FROM
`growthbook-ga4-396012`.`analytics_308238632`.`events_*`,
UNNEST(event_params) AS experiment_id_param,
UNNEST(event_params) AS variation_id_param
WHERE
_TABLE_SUFFIX BETWEEN '{{startYear}}{{startMonth}}{{startDay}}' AND '{{endYear}}{{endMonth}}{{endDay}}'
AND event_name = 'experiment_viewed'
AND experiment_id_param.key = 'experiment_id'
AND variation_id_param.key = 'variation_id'
AND user_pseudo_id is not null
happy-lamp-67598
02/02/2024, 5:58 AMmammoth-belgium-33983
02/02/2024, 2:04 PMexperiment_viewed
appears as datalayer in your browser, if it does, you can then map it with GTM to pass it to GA as an eventhappy-lamp-67598
02/05/2024, 5:58 AMmammoth-belgium-33983
02/05/2024, 1:57 PM