A Key events figure of 3.4 is not a bug. When a Google Analytics 4 property reports with data-driven attribution, one key event is not handed whole to a single source. Its credit is divided among the touchpoints on the user's path, such as two different keywords the user clicked, and the shares for that one event add up to 1. Summed over a day, those shares leave decimals in the total. Revenue follows the same split, so it carries fractions too. Keep the decimals in your data: store key events and revenue in decimal or floating-point columns, not integer ones.
Which metrics and reports show fractions
Google's attribution settings page names the metrics that can hold decimals once a property uses a data-driven model: Key events, Total revenue, Purchase revenue and Total ad revenue. The fractions show when you read these metrics with event-scoped traffic dimensions, such as Source, Medium, Campaign and Default channel group:
- Event-scoped dimensions (Campaign, Source, Medium, Default channel group) give the credit to whatever the reporting attribution model picks. Under data-driven attribution that is a share per touchpoint, so decimals appear.
- Session-scoped and user-scoped dimensions (Session source, First user medium and the like) are not affected by the reporting attribution model, according to the same page.
The reporting attribution model is a property setting. Google says a change to it applies to past data as well as future data, so switching a property to data-driven can make decimals appear on days that used to show whole numbers. See GA4 attribution model and lookback windows.
What etlmcp pulls, and why its numbers can differ from a GA4 report
When the connector is available, etlmcp asks the Data API for the day, the session campaign ID, the session campaign name and the session source / medium. Google's Data API reference describes these as the campaign and source / medium of the session, so they are session-scoped dimensions. Each row carries metrics such as Sessions, Key events, Orders and Revenue for that session campaign and source / medium.
- Because the rows are keyed on session dimensions, they are not the data-driven split you see in a GA4 report or exploration grouped by the event-scoped Campaign dimension. The key events per campaign in your table can differ from such a report, even for the same dates and property. Compare against a GA4 exploration that uses Session campaign, not Campaign.
- etlmcp does not assume the figure is whole. It stores
key_eventsas a number, not an integer, so a fraction is kept as Google delivers it rather than cut to a whole number. Revenue, stored asrevenuein the property's currency, is a number as well. Orders, Sessions and the user counts are catalogued as whole counts.
Type your warehouse columns to match
Depending on the database and the load tool, an integer column may refuse a value like 3.4, or round or cut it to a whole number. A failed load leaves days missing, and rounding adds up to a visible gap over a month.
- PostgreSQL destination. etlmcp creates the GA4 metric columns as
double precisionwhen it creates the table or adds a column, soextra.key_eventsandextra.revenuekeep their decimals. The column name keeps its dot, so write it in double quotes in SQL:SUM("extra.key_events"). A transform rule that sets a constant into one of these columns, or derives it, makes etlmcp create that column as text instead, and a column that already exists keeps the type it has, so check the column types after you add rules. - A table you build yourself from a CSV export or a webhook: give key events and revenue a decimal or floating-point type. Use an integer type only for counts that are always whole, such as orders or sessions.
- Rounding. Sum first, round last. Rounding each row to a whole key event before you add them up drifts away from the property's total. If a report needs whole numbers, round in the report and label the figure as rounded.