Google Analytics 4
Renta sends rows from your data warehouse to a Google Analytics 4 web or app data stream as Measurement Protocol events with event parameters and user properties.
This covers events your site or app cannot track, such as offline purchases, CRM stage changes, and subscription renewals.
Authentication
Renta authenticates with the ID of a data stream and a Measurement Protocol API secret of that stream. Collect both in Google Analytics before you start.
- Open Admin > Data streams and select the stream.
- For a web stream, copy the Measurement ID. It starts with
G-. For an app stream, copy the Firebase App ID. - On the same page, open Measurement Protocol API secrets, click Create, enter a nickname, and copy the Secret value.
Google Analytics does not report a wrong API secret or a wrong stream ID. It accepts the request and discards the event, so Renta cannot check that the secret belongs to the stream. After the first run, make sure the events arrive in Google Analytics.
Connect Google Analytics 4 destination
- Navigate to the Connections > Catalog section in the left sidebar and open the Destinations tab.
- Open the Analytics category and click the Google Analytics 4 card.

Fill in the stream you send events to:
- Measurement ID.
The ID of a web data stream. Leave it blank for an app data stream. - Firebase App ID.
The ID of an app data stream. Leave it blank for a web data stream. - API secret.
The Measurement Protocol API secret of this stream. - Data collection region.
Choose EU to collect and process the data in the European Union. Otherwise keep Global.
A destination holds one stream, so fill in either Measurement ID or Firebase App ID.

- Destination name.
Specify a name for this destination. This is used exclusively in the Renta interface.
Click Save to finish.

The new destination appears in the Destinations list with the Active status. You can now use it in Reverse ETL pipelines.

To replace the API secret later, open the destination, enter the new value in API secret, and click Save. Leave the field blank to keep the current secret.
Prepare a data model
A Reverse ETL pipeline reads from a data model: a SQL query saved in the Context layer section that decides which warehouse rows to sync and what each row holds. Build it before the pipeline, because the mapping dropdowns are filled from its columns.
An event model holds one event per row. Give every row the name of the event, the time it happened, and the identifier of the person: the Client ID for a web stream or the App instance ID for an app stream.
-- Offline purchases prepared for Google Analytics 4.
-- The query returns rows only, no table is created.
-- Use event times from the last 72 hours when you try it.
WITH demo_purchases AS (
SELECT
'order-1001' AS event_id,
'1197596843.1764900001' AS client_id,
'offline_purchase' AS event_name,
TIMESTAMP '2026-12-04 14:20:00 UTC' AS event_time,
'pro' AS plan_name,
129.00 AS order_value,
'gold' AS customer_tier
UNION ALL SELECT 'order-1002', '2045118327.1764900002', 'offline_purchase', TIMESTAMP '2026-12-04 15:05:00 UTC', 'starter', 59.00, 'silver'
UNION ALL SELECT 'order-1003', '1630274915.1764900003', 'offline_purchase', TIMESTAMP '2026-12-04 16:40:00 UTC', 'business', 249.00, 'gold'
)
SELECT * FROM demo_purchasesMark the column that identifies an event as the key when you save the model, event_id in this example. Renta uses the key to tell a new row from one it already sent, so pick the ID of the event and not of the person: two orders by one customer are two events. The steps are the same for every warehouse, see Create a data model.
Keep only recent events in the model. Google Analytics accepts an event for 72 hours after it happened, and Renta skips older rows.
Store the event time in the warehouse. A time computed in the query, such as CURRENT_TIMESTAMP(), changes on every run, so Renta cannot tell an old event from a new one.
Create a Google Analytics 4 pipeline
The destination and the data model have to exist before you start.
In the left sidebar, click New pipeline. On the Source step, switch the toggle to Reverse ETL, pick your data warehouse, such as Google BigQuery, and click Next step.

Choose the warehouse connection that holds your data model and click Next step.

On the Destination step, select Google Analytics 4 under Already connected and click Next step.

Choose the Google Analytics 4 connection you created earlier and click Next step. Each card shows the stream ID, the region, and when the connection was created.

Pipeline configuration
On the final step, choose the data model and describe which columns make up an event.
What Renta sends
Pick the object and the data model.

- What would you like Renta to send to Google Analytics 4?
Event is the only object. Renta sends each new row as an event through the Measurement Protocol. - Data model.
Choose the model to sync. Each row of the model becomes one event, and the columns available for mapping below come from it.
Event fields
In the Map your data to Google Analytics 4 event fields block, connect the model columns to the fields of an event.

Three rows are added for you and cannot be removed: the identifier of the stream (Client ID for a web stream, App instance ID for an app stream), Event name, and Event time. Each field can be mapped once.
Add the other rows with the buttons under Add mapping.
| Mapping type | Description |
|---|---|
| Standard | Sends the value of a model column. |
| Static | Sends a fixed value you enter with every event. It suits Event name when all rows are one kind of event. It is not available for Client ID, App instance ID, User ID, Event time, and Session ID. |
| Variable | Sends a run variable, such as the model name or the run ID. It is not available for Client ID, App instance ID, User ID, Event time, and Session ID. |
The table lists the fields and the values Renta expects.
| Google Analytics 4 field | What to send |
|---|---|
| Client ID | Required for a web stream. The ID of the browser. To attribute the event to a visitor of your site, send the Client ID the Google tag stored in the _ga cookie. |
| App instance ID | Required for an app stream. The ID of the app installation from the Firebase SDK: 32 hexadecimal characters. |
| User ID | Your own ID of the signed-in user, the same one your site or app sends to Google Analytics. |
| Event name | Required. Up to 40 characters: letters, digits, and underscores, starting with a letter. Names that Google Analytics reserves, such as first_visit or session_start, are not accepted. A web stream also does not take ad_impression, in_app_purchase, and screen_view. |
| Event time | Required. The moment the event happened: a timestamp column, an ISO 8601 string, or a Unix time. A value without a time zone is read as UTC. It has to be within the last 72 hours. |
| Session ID | A whole number. Send it together with Engagement time so that the event appears in session reports. |
| Engagement time (ms) | A whole number of milliseconds. |
| Consent: ad user data | GRANTED or DENIED. |
| Consent: ad personalization | GRANTED or DENIED. |
| IP address | The IP address of the user. Google Analytics derives the location from it. |
| User agent | The user agent string of the browser or device. |
| City | The name of the city. |
| Region (ISO 3166-2) | A region code, such as US-CA. |
| Country (ISO 3166-1 alpha-2) | A two-letter country code, such as US. |
| Subcontinent (UN M49) | A UN M49 code, such as 021. |
| Continent (UN M49) | A UN M49 code, such as 019. |
| Device category | The kind of device, such as mobile or desktop. |
| Device language | A language code, such as en. |
| Screen resolution | Width and height, such as 1280x2856. |
| Operating system | The name of the operating system. |
| Operating system version | The version of the operating system. |
| Device model | The model of the device. |
| Device brand | The brand of the device. |
| Browser | The name of the browser. |
| Browser version | The version of the browser. |
Renta leaves an empty cell out of the event.
Event parameters
In the Add event parameters block, add the details of the event, such as the plan or the order value. Choose a column and type the name of the parameter as Google Analytics should receive it.

- A parameter name has up to 40 characters: letters, digits, and underscores, starting with a letter.
- An event carries up to 25 parameters. Session ID and Engagement time (ms) count toward this limit.
- Names starting with
_,firebase_,ga_,google_, orgtag.are reserved by Google Analytics. So is the namefirebase_conversion. - To send the products of an order, name the parameter
itemsand map it to an array column or to text holding a JSON array. An event carries up to 200 items.
To use a parameter in reports, register it as a custom dimension or metric in Google Analytics under Admin > Custom definitions.
User properties
In the Add user properties block, add the attributes of the person, such as the customer tier. Choose a column and type the name of the property.

- A property name has up to 24 characters: letters, digits, and underscores, starting with a letter.
- An event carries up to 25 user properties.
- Names starting with
_,firebase_,ga_, orgoogle_are reserved by Google Analytics. So areuser_id,first_open_time,first_visit_time,last_deep_link_referrer, andfirst_open_after_install.
Sync behavior
The last settings cover deleted rows and the pipeline name.

- When a source row is deleted.
Ignore is the only option. Google Analytics cannot delete or change an event after it is sent, so a row leaving the data model changes nothing in your property. - Integration name.
The name of your pipeline. Edit it to match your preferences.
Schedule
Choose how often the pipeline runs.

| Schedule type | Description |
|---|---|
| Manual | The pipeline runs only when triggered manually through the interface or via API. |
| Daily | The pipeline runs once a day at the specified update time. |
| Interval | The pipeline runs at specified time intervals. |
| Cron Expression | The pipeline runs on a schedule defined by a cron expression. |
For Daily schedules, set the Update time (the exact time each run starts), then click Create pipeline.

Run the pipeline at least once every 72 hours. An event that waits longer is too old for Google Analytics, and Renta skips it.
Renta also supports API triggers and integration with external orchestrators such as Apache Airflow, Dagster, and Prefect. See the full scheduling documentation for details.
The new pipeline appears in the Pipelines section under the Reverse ETL tab, where you can track its runs and progress.

Sync strategy
Renta syncs incrementally. A run compares the data model against the state the previous run recorded and sends only the rows that are new. The first run has nothing to compare against and sends the model in full.
| Row state | What Renta does |
|---|---|
| New | Sends the row as an event. |
| Changed | Sends nothing. Google Analytics would count the event a second time. |
| Unchanged | Sends nothing. |
| Deleted | Sends nothing. An event already sent to Google Analytics cannot be taken back. |
Renta remembers the events a pipeline sent for four days. A full refresh or a run that repeats after a failure skips them, so an event is not counted twice.
Each pipeline keeps its own record. A second pipeline that sends the same model to the same data stream sends the events of the last 72 hours again.
Limits
These rules affect how you build the data model and how you read the result of a run.
- Events are append-only.
Nothing sent to Google Analytics can be edited or deleted afterwards. Try the mapping on a few rows and a test property before the first live run. - Events older than 72 hours are skipped.
Google Analytics accepts an event for 72 hours after it happened. Renta skips an older row and does not return to it. - Events dated ahead wait for their time.
Renta does not send a row dated more than 15 minutes ahead. The run log shows it as rejected, and a later run sends it once its time comes. If this happens to many rows, check the time zone of the event time column. - Invalid rows are not sent.
Before sending, Renta checks every row against the Google Analytics rules for names, value types, and limits. A row that fails the check is not sent, and the run log shows the reason. Fix the data in the warehouse, and the next run sends the row. - Long values are cut by Google Analytics.
Google Analytics keeps the first 100 characters of an event parameter value and the first 36 characters of a user property value. Google Analytics 360 properties keep 500 characters of a parameter value. - A wrong secret is silent.
Google Analytics accepts events sent with a wrong API secret or stream ID and discards them. The run finishes without errors, and the events never appear in the property. - Reports update with a delay.
New events appear in the Realtime report first. The standard reports show them within 24 to 48 hours.
Ready to get started?
Build your data pipeline today or get a personalized demo. Start free!
Need help?
Get expert support to ensure your project succeeds. We're here to help!
Feature requests?
Help shape our product! Share your ideas for new features and integrations.