Skip to main content

Google Analytics (GA4) Integration

Integrate Google Analytics 4 (GA4) to track customer behavior and measure widget performance.

Written by Althaaf Rachman Hafidz

How to Integrate

  1. Go to Settings → Widget → Widget Settings.

  2. Locate the GA4 Integration subsection.

  3. Paste your GA4 Measurement ID in the provided field.

  4. (Optional) Configure GA4 Secret Key for Server-Side Tracking

    If you want to send the buyback_reusely event via server-side tracking, you need to add the GA4 Secret Key.
    ​

    What is a GA4 Secret Key?

    The GA4 Secret Key is used for Measurement Protocol authentication, allowing Reusely to send events directly from the server to GA4 rather than from the browser.


    How to get GA4 Secret key:

    1. Go to Google Analytics (GA4)

    2. Search for your Measurement ID

    3. Click the settings with the Measurement ID

    4. Open Data Stream

    5. Click Measurement Protocol API Secret

    6. Create or copy the Secret Value

    7. Paste it into Reusely → Widget Settings → GA4 Secret Key

Note: When using server-side tracking with the GA4 Secret Key, the event is sent from the backend rather than the browser, helping ensure it is recorded even if client-side tracking is blocked (e.g., by ad blockers or browser restrictions).

Tracked Events

Location

Event

Step

Variable

Mail-In

load

First load of the widget

gtm_id

Mail-In

view_item

When choosing the item category

content_type, currency, items (item_category), value

Mail-In

view_item

When choosing the item model

content_type, currency, items (item_brand, item_category, item_name), value

Mail-In

view_item

When choosing the item model specification

content_type, currency, items (item_brand, item_category, item_name, product_group_id), value

Mail-In

add_to_cart

When confirming the condition

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

Mail-In

generate_lead

When the customer has filled in the email info

content_type, currency, value

Mail-In

view_cart

When on the offer summary step (before the checkout step)

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

Mail-In

remove_from_cart

When an item is removed from the cart

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

Mail-In

begin_checkout

When on the checkout step

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

Mail-In

add_payout_info

When the customer adds Payout Info

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, payment, value

Mail-In

add_shipping_info

When a customer adds Shipping Info

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, shipping_tier, value

Mail-In

lead_form_data

When customer choosing

data (email, first_name, full_name, last_name, phone)

Mail-In

buyback_reusely

Completed buyback offer

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, transaction_id, value, visitor

In-Store

load

First load of the widget

gtm_id

In-Store

view_item

When choosing the item category

content_type, currency, items (item_category), value

In-Store

view_item

When choosing the item model

content_type, currency, items (item_brand, item_category, item_name), value

In-Store

view_item

When choosing the item model specification

content_type, currency, items (item_brand, item_category, item_name, product_group_id), value

In-Store

add_to_cart

When confirming the condition

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

In-Store

generate_lead

When the customer has filled in the email info

content_type, currency, value

In-Store

find_location

When selecting locations

currency, location_address, location_city, location_country, location_id, location_name, location_state, location_zip

In-Store

view_cart

When on the offer summary step (before the checkout step)

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

In-Store

remove_from_cart

When an item is removed from the cart

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

In-Store

begin_checkout

When on the checkout step

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, value

In-Store

add_payout_info

When the customer adds Payout Info

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), num_items, payment, value

In-Store

lead_form_data

When customer choosing

data (email, first_name, full_name, last_name, phone)

In-Store

buyback_reusely

Completed buyback offer

content_type, currency, items (item_brand, item_category, item_condition, item_id, item_name, item_variant, price, product_group_id, quantity), location_address, location_city, location_country, location_id, location_name, location_state, location_zip, num_items, transaction_id, value, visitor

Did this answer your question?