---
title: "GA4 cross-domain tracking for your agent site and hosted IDX"
description: "Check GA4 tagging across your real estate website and hosted IDX. Verify the linker, session continuity, and delivery of buyer and seller inquiries."
canonical: "https://scalewithsearch.com/articles/ga4-cross-domain-agent-idx-inquiries"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Services
  - Services
    - [AI systems](https://scalewithsearch.com/ai-systems)
    - [Site build](https://scalewithsearch.com/work#site-build)
    - [Whole website fix](https://scalewithsearch.com/work#whole-website-fix)
    - [Content library with SEO](https://scalewithsearch.com/work#content-library)
    - [Working session](https://scalewithsearch.com/audit)
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Example scope](https://scalewithsearch.com/work#review-the-example-scope)
  - [Prices and terms](https://scalewithsearch.com/work#prices-and-terms)
- Industries
  - Real estate
    - [Real estate agents and teams](https://scalewithsearch.com/for/real-estate)
    - [Platforms, ownership, and IDX](https://scalewithsearch.com/for/real-estate/real-estate-website-platforms-ownership-idx)
    - [Search, content, and AI](https://scalewithsearch.com/for/real-estate/real-estate-search-content-ai)
    - [Inquiries, campaigns, and handoffs](https://scalewithsearch.com/for/real-estate/real-estate-website-inquiries-campaigns-handoffs)
    - [Buyer, seller, and local pages](https://scalewithsearch.com/for/real-estate/real-estate-buyer-seller-local-resources)
    - [Rules, privacy, and trust](https://scalewithsearch.com/for/real-estate/real-estate-website-rules-privacy-trust)
  - Browse by business
    - [Trades and home services](https://scalewithsearch.com/for/#group-trades)
    - [Health, wellness, and animal care](https://scalewithsearch.com/for/#group-practices)
    - [Law, finance, and IT](https://scalewithsearch.com/for/#group-professional)
    - [Marketing and SEO agencies](https://scalewithsearch.com/for/#group-agencies)
    - [Shops and manufacturers](https://scalewithsearch.com/for/#group-manufacturing)
    - [Restaurants, shops, studios, and nonprofits](https://scalewithsearch.com/for/#group-local-services)
  - Chiropractic practices
    - [Chiropractic and wellness practices](https://scalewithsearch.com/for/chiropractic-and-wellness-practices)
    - [Chiropractic and physical therapy clinics](https://scalewithsearch.com/for/chiropractic-and-physical-therapy-clinics)
  - [All industries](https://scalewithsearch.com/for/)
- Resources
  - Free tools
    - [AI readiness check](https://scalewithsearch.com/check)
    - [Free tools](https://scalewithsearch.com/tools/)
    - [Free Starter Kit](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
  - Guides
    - [AI-native library](https://scalewithsearch.com/ai-native)
    - [Industry intelligence](https://scalewithsearch.com/intelligence)
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Migration and ownership](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles
    - [All articles](https://scalewithsearch.com/articles/)
    - [What changed](https://scalewithsearch.com/changes/)
- About
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Scale With Search
    - [About](https://scalewithsearch.com/about)
    - [How it works](https://scalewithsearch.com/how-it-works)

# GA4 cross-domain tracking for your agent website and hosted IDX

Use GA4 cross-domain tracking when a visitor moves from your website to a related site on another domain, such as hosted property search. The linker passes measurement information between the domains so Google can measure that journey together. Both sides must support the setup. [Google's cross-domain explanation](https://developers.google.com/tag-platform/devguides/cross-domain).

For an agent, start with the buyer's actual route: neighborhood page, property search, property detail, then inquiry. Check the seller route separately. Require evidence that measurement continues across the relevant pages and that the message reaches its recipient.

This guide proposes a website acceptance method. It does not report tests from your website or promise more inquiries.

## Identify where the property search and inquiry live

Follow the search link from your own website. Record the starting address, destination, inquiry form, and confirmation page. Ask your provider to classify the implementation before changing GA4.

| Arrangement to inspect | Evidence to request |
| --- | --- |
| Search pages remain on your website | Tagged page addresses and the form's success signal |
| Search opens a separate hosted domain | Destination tagging access and supported cross-domain configuration |
| Search uses a subdomain | Cookie-domain settings, tag coverage, and any self-referral evidence |
| Search appears inside an iframe | Embedded document address and the vendor's supported measurement method |

For subdomains, inspect cookie-domain settings before assuming a separate root-domain problem. Google documents possible self-referrals when subdomains use different cookie domains. [Google's subdomain guidance](https://support.google.com/analytics/answer/10071811?hl=en).

An iframe contains its own document. Browser rules restrict script access between different origins. Treat an embedded search as a separate implementation question. [MDN's iframe documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe#scripting).

Ask the vendor how the embedded form reports successful inquiries to your measurement setup. Require its supported integration and a test result. Do not treat adding the iframe's domain to a list as proof that its activity is measured.

## Confirm tagging access before configuring domains

Google requires the same `G-` tag ID from the same web data stream on the pages included in cross-domain measurement. [Google's tagging requirement](https://support.google.com/analytics/answer/10071811?hl=en).

Ask the IDX provider these questions in writing:

- Can our own GA4 tag run on the search, property, form, and confirmation pages?
- Which exact hostnames does this account use, including redirects and login destinations?
- Does your integration accept incoming linker parameters and preserve them through redirects?
- Can we verify the inquiry's success event and its receiving destination?

Name the person responsible for each side. Confirm that tagging applies to your pages or account. Request precise domain conditions rather than approving a shared vendor domain without reviewing what it matches.

If the provider cannot support the required tagging, report cross-domain measurement as unsupported or unresolved. Keep an inquiry form on your own website available while you scope a supported alternative.

## Configure the web stream and inspect the linker

An authorized editor can open **Admin > Data collection and modification > Data streams**. Select the web stream, then **Configure tag settings > Configure your domains**. Add conditions for the participating domains and save. Google requires Editor access or above. [Google's configuration instructions](https://support.google.com/analytics/answer/10071811?hl=en).

Google recommends the Analytics Admin setup for most GA4 implementations. Its developer documentation explains that the source decorates destination links with `_gl`, which the destination tag reads. Decoration happens when the link is clicked. [Google's linker documentation](https://developers.google.com/tag-platform/devguides/cross-domain).

For your acceptance check, open a fresh test session and follow the real search link immediately. Record the destination request containing `_gl`. Check the return route as well when the visitor comes back to your website.

If the parameter disappears, ask the developer to inspect redirects and scripted navigation. Google documents redirects removing `_gl` and click-handling conflicts preventing decoration. [Google's troubleshooting guidance](https://support.google.com/analytics/answer/10071811?hl=en).

For an iframe or a form that sends the visitor elsewhere, require a separate vendor-supported test. The linker documentation describes additional form-decoration configuration; an ordinary link test does not establish every route. [Google's form-decoration reference](https://developers.google.com/tag-platform/devguides/cross-domain#decorate_forms).

## Prove continuity beyond the visible URL

Require your developer to compare the GA4 `client_id` and `session_id` before and after the immediate domain transition. Google's `gtag` API supports retrieving both fields. Use that API or a documented diagnostic method available in the integration. [Google's get-command reference](https://developers.google.com/tag-platform/gtagjs/reference#get).

Keep these identifiers private. Request a redacted comparison showing whether they match. Require the correct destination stream to receive the activity. A decorated link alone is insufficient evidence for closing your acceptance check.

Enable debug mode for the tester's device and inspect **Admin > Data display > DebugView**. It displays collected events and parameters. Google directs attribution checks to acquisition reports because DebugView provides limited attribution analysis. [DebugView guidance](https://support.google.com/analytics/answer/7201382?hl=en).

Repeat the test for the property-detail link and any return to your seller or buyer contact page. Save the date, device, route, consent state, and pass or failure for each transition.

Test the website's consent choices separately. Google notes that denied Analytics consent or client privacy controls can prevent events appearing in DebugView. Record that condition without changing a visitor's choice to force measurement. [DebugView privacy limits](https://support.google.com/analytics/answer/7201382?hl=en).

## Distinguish search activity from a received inquiry

Google recommends `generate_lead` for a generated lead, such as a form inquiry. Use it as a proposed event for an accepted buyer or seller request. [Google's event definition](https://developers.google.com/analytics/devguides/collection/ga4/reference/events#generate_lead).

Ask the provider to document its trigger. Require one event after successful acceptance. Test validation failures and repeated confirmation-page visits. Keep saved searches and account registrations outside the inquiry total unless your reporting definition explicitly includes them.

Use contact details you control and a recognizable test message. Confirm receipt in the agreed inbox or contact system. Record the accepted submission and matching received message as separate checks.

Keep names, email addresses, personal phone numbers, and message text out of Analytics. Google prohibits personally identifiable information in collected data, including URLs and user-entered fields. Retain identifiable delivery evidence privately. [Google's privacy requirements](https://support.google.com/analytics/answer/6366371?hl=en).

Also review any existing search-click report. Enhanced measurement stops recording automatic outbound clicks to domains configured for cross-domain measurement. Require a separate documented click event if your reporting still needs that count. [Google's outbound-click behavior](https://support.google.com/analytics/answer/9216061?hl=en).

## Report the source and the measurement boundary

The cross-domain test plan distinguishes identifier continuity from a vendor referral or a received inquiry. Present the failed transition at [whole website fix: cross-domain transitions](/for/real-estate). The whole website fix requires connection work to be scoped explicitly.

[Google's Traffic acquisition guidance](https://support.google.com/analytics/answer/12923437?hl=en). [Unwanted-referral rules](https://support.google.com/analytics/answer/10327750?hl=en) [linker mechanism](https://developers.google.com/tag-platform/devguides/cross-domain). [cross-domain transitions, published scope, checked 2026.10.14](https://scalewithsearch.com/work).

- [Test the seller inquiry path on your real estate website](/articles/seller-inquiry-path-agent-website)
- [Check your real estate website in 30 minutes](/articles/real-estate-website-audit)
- [Own your real estate website: domain, hosting, editing, and leads](/articles/own-your-site)
- [GA4 Unassigned traffic: diagnose your real estate website campaigns](/articles/ga4-unassigned-agent-campaign-traffic)


## Related: Real estate

- [Test the seller inquiry path on your real estate website](/articles/seller-inquiry-path-agent-website)
- [Check your real estate website in 30 minutes](/articles/real-estate-website-audit)
- [Own your real estate website: domain, hosting, editing, and leads](/articles/own-your-site)

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
