> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.resmarksystems.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Set Up Google Analytics 4 (GA4) with Resmark

Looking to set up Google Analytics 4 (GA4)? Everything you need to know can be found in this article.

---

## Page Index
1. [Video Tutorial](#1-video-tutorial)
2. [Getting Started Guide](#1-getting-started-with-google-analytics-4-ga4-and-resmark-systems)
3. [Important Update: October 2025](#2-important-update-google-analytics-changes-affecting-resmark-effective-october-15th-2025)

---

## Video Tutorial
${youtube}[GA4 Setup Video](x29y5dlUDzo)

---

## Getting Started with Google Analytics 4 (GA4) and Resmark Systems

This guide walks you through creating, configuring, and connecting your GA4 property with Resmark Systems, as well as validating tracking and setting up your Sales Funnel report.

---

### 1. Creating and Configuring a GA4 Property

#### Step 1: Create a GA4 Property
1. Go to [analytics.google.com](https://analytics.google.com) and sign in or create an account.
2. In the left menu, click **Admin**, then select **Create Property**.
3. Name your property, set your **time zone** and **default currency**, and click **Next**.
4. When prompted, choose **No** for "Migrating from Universal Analytics."
5. Select **Web** as your platform.
6. Enter your website's homepage URL and make sure **Enhanced Measurement** is turned on before creating the stream.

> **Enhanced Measurement** automatically tracks interactions like page views, scrolling, outbound clicks, and form submissions with no extra setup needed.

#### Step 2: Configure and Install the Tag
1. **Installation handled by Resmark:** Resmark will install your GA4 tag on the public page and any pages using the Resmark Widget.
2. **If you have other pages:** Manually add your GA4 tag to any additional pages you want to track.
3. In **Web Stream Details**, copy the **Measurement ID** (e.g., `G-XXXXXXX`). You will enter this later in Resmark under **Website Tools > Analytics & Tracking**.
4. Click **Configure tag settings**, then select your Google Tag.
* Toggle **Ignore duplicate instances of on-page configuration** to **Off**.
* Because Resmark is a single-page application, this must be off to track page views correctly.
5. Set **Data Retention** to **14 months:**
* Go to **Property Settings > Data Settings > Data Retention**.
* Set **Event Data Retention** to 14 months and click **Save**.

#### Step 3: Set Up Cross-Domain Tracking (If Needed)
If users move between multiple domains during a session, configure Cross-Domain Tracking to avoid counting these as outbound clicks.

**Path:** Data Streams > Stream Details > Configure Tag Settings > Configure Your Domains

---

### 2. Adding the Measurement ID to Resmark and Testing

#### Step 1: Add Measurement ID
* Go to **Website Tools > Analytics & Tracking**.
* Paste your **GA4 Measurement ID** and click **Save**.

#### Step 2: Validate Data
1. Open your **Google Analytics dashboard** and navigate to **Realtime Reports**.
2. In another browser tab, visit your website and interact with it (browse pages, add items to cart).
3. You should see activity appear in the Realtime view within a few minutes.

---

### 3. Creating a Sales Funnel Report in GA4

The Sales Funnel report visualizes your users' journey through the booking process, from starting an order to completing it. It helps identify where users drop off.

**Example:** [Sales Funnel Report Example](https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA)

#### Step 1: Set Up the Report
1. In GA4, select **Explore** from the left menu.
2. Start a new exploration using the **Funnel Exploration** template.
3. Remove any default steps.
4. Click **Edit Steps** and begin adding your own.

For each step:
* Name the step (e.g., *Select Date & Time*).
* Add a condition: choose **Page / screen** > **Page title and screen class**.
* Use the **Contains** filter for your page title (see event titles below).
* Click **Add Step** and repeat for all funnel stages.

> You don't need to include every page view event, but maintain the correct step order. Documentation on supported page view events is available through Resmark Support.

#### Step 2: Save and Wait for Data
* Name and save your report.
* It may take up to **24 hours** for data to appear once tracking is active.
* [Example Sales Funnel](https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA)

#### Step 3: List of Page View Events

| **User Action** | **Event Title** | **Notes** |
| ---- |
| Start Order | `Start Order` | Triggered when a user clicks "Add to Cart." |
| Select Pickup (Optional) | `Pickup` | Optional, only for products with pickup. |
| Select Quantity | `Quantity` | When user chooses quantity. |
| Select Date & Time | `Date` | When user selects date and time. |
| Agree to Policies (Optional) | `Policies` | Optional, if applicable. |
| Agree to Notes (Optional) | `Notes` | Optional, if applicable. |
| Add to Cart | `Add to Cart` | When item is added to cart. |
| Submit Payment | `Payment` | When payment is submitted. |
| Complete Order | `Complete` | When order process completes. |
| Confirmation | `Confirmation` | When user lands on confirmation page. |
| Material Request Confirmation | `Material Request Confirmation` | Optional additional event. |
| Contact Request Confirmation | `Contact Request Confirmation` | Optional additional event. |

---

### 4. GA4 Ecommerce Events (Resmark Integration)

| **Event Name** | **User Interaction** | **Parameters Tracked** |
| ---- |
| **Add to Cart** | Clicked "Add to Cart" | `send_to`, `items[item_id, item_name, item_category, quantity]` |
| **Begin Checkout** | Clicked "Add to Cart" (from modal) | `send_to`, `items[item_id, item_name, item_category, quantity]` |
| **Select Promotion** | Entered promo code | `send_to`, `promotion_name`, `items[item_id, item_name, item_category, discount]` |
| **Add Payment Info** | Submitted payment details | `send_to` |
| **Purchase** | Payment completed successfully | `send_to`, `transaction_id`, `affiliation`, `value`, `tax`, `currency`, `items[item_id, item_name, price, quantity, item_category]` |
| **Remove from Cart** | Clicked "Remove from Cart" | `send_to`, `items[item_id, item_name]` |
| **Start Over** | Clicked "Start Over" | `send_to`, `value`, `items[item_id, item_name]` |

---

### 5. Additional Resources

* [GA4 Help Center -- Official Documentation](https://support.google.com/analytics/answer/10089681)

---

### Important Update: Google Analytics Changes Affecting Resmark (Effective October 15, 2025)

If your Resmark account uses Google Analytics, please read carefully.

In **September 2025**, Apple released **iOS 26**, which introduced privacy changes that block Google Analytics JavaScript from loading correctly. This caused two main issues for GA4 users and their Resmark analytics data:

* Google Analytics stopped recording activity.
* In certain cases, Resmark checkout widgets failed to load.

We have released updates to fix these issues and improve compatibility going forward.

---

#### What Changed

**Resmark Cart Reliability**
If a user's device blocks Google Analytics, the Resmark Cart will now still load and function normally. Previously, a GA load failure could cause the Cart to fail as well.

**Server-Side Analytics**
We have implemented Server-Side Analytics to track Resmark clicks directly on our servers. This data is sent securely to Google Analytics, even when a user's browser blocks GA scripts.

---

#### What You Need to Do

If you use **Google Analytics 4 (GA4)**, update your settings in Resmark.

**In Resmark:**
1. Go to **Website Tools > Configure Analytics**.
2. Update your **Google Analytics 4 Measurement API Secret**.
3. Confirm your **Google Analytics 4 Measurement ID** matches your GA account.

**In Google Analytics:**
1. Click the **Admin (gear icon)** in the bottom-left corner.
2. Under **Data Collection and Modification**, choose **Data Streams**.
3. Select the correct stream.
4. Click **Measurement Protocol API Secrets** (Admin access required).
5. Create a new **API Secret** and copy it.
6. Paste this value into Resmark.

> **Note:** The first time you create an API Secret, you will be prompted to accept Google's terms. This is required before the key can be generated.

---

#### Why This Matters

These updates ensure that Resmark continues to track data accurately and your checkout widgets remain stable, even as browser and device privacy settings evolve.
