Google Analytics Audit Test #

25

(not set) Transaction ID at purchase

Why It Matters:

One of the most critical data points in understanding site performance.

Industries:

Ecommerce

Checks For:

Accuracy

How accurate is your recent data?

Insight Category:

Behavior

Can you tell what visitors are doing?

Google Analytics Audit logo

Background

A GA4 audit is essential for uncovering missing insights—key data points that organizations don't yet know and can act upon. A well-done audit evaluates both behavioral tracking and traffic attribution, ensuring each is accurate and useful. It also assesses whether the data collected truly supports business decisions and reporting.

Test Detail

This test checks whether any ecommerce transactions are recorded with a "(not set)" Transaction ID, which often results from improper tagging or duplicate hits.

A Transaction ID should be unique per purchase, allowing proper deduplication and accurate revenue reporting.

Check This Test for Free! Instantly.

Our free instant audit tool checks for 90 issues in 90 seconds.

Then gives you a prioritized list of items to tackle.

No cost, no sales call... just free goodness.

Google Analytics audit test results.

How to Conduct This Test

Basic Tests

  • Go to Explore in GA4 and build a free-form exploration.

    • Set dimensions: Transaction ID
    • Set metrics: Transactions, Purchase Revenue
    • Apply filter: Transaction ID exactly matches "(not set)"
  • If "(not set)" appears and has values for transactions or revenue, that signals a problem. Hire a pro if you want help isolating the issue and validating GA4 ecommerce integrity.

Automated, Free Audit

Want to skip the manual work? Run our Instant Audit

Or hire a pro to ensure your ecommerce tracking is capturing accurate data that matches your backend.

How To Fix

Fixing 'purchase' events with (not set) items

  • Use the recommended push to the dataLayer, ensuring the items array is complete:
    gtag('event', 'purchase', {
      transaction_id: 'T12345',
      currency: 'USD',
      value: 129.99,
      tax: 5.00,
      shipping: 10.00,
      items: [
        {
          item_id: 'SKU_789',
          item_name: 'Noise-Canceling Headphones',
          quantity: 1,
          price: 129.99
        }
      ]
    });

QA Tips

  • Check your purchase tag in GTM or codebase to ensure a valid transaction_id is always passed.
  • Ensure the transaction_id is populated server-side (if using server-side tracking).
  • Watch out for race conditions that might cause ecommerce hits to fire without the correct data.
  • Hire a pro to fix the problem accurately and preserve your revenue data.