Skip to main content

Using Google Analytics from your store

Track visitors from ReferralCandy to your store using Google Analytics

Written by Adam

Use Google Analytics 4 (GA4) on your eCommerce store to understand visits arriving through your referral links. Traffic-source data can help you compare recorded sessions and engagement from those visits.

Before you start: Set up GA4 on your store. Follow Google's Analytics setup guide, or Shopify's GA4 setup guide if you use Shopify.

To track visits on ReferralCandy-hosted program pages, use Integrating Google Analytics with ReferralCandy. Adding your Measurement ID there does not install tracking on your store.


View store traffic in GA4

  1. Open the GA4 property that collects data from your store. Use Google's Traffic acquisition report guide to find the report. Its menu location can vary with your report navigation.

  2. Review Session source / medium to see the traffic labels associated with store sessions. Use Session campaign as well, where available, to help distinguish your program or campaign's traffic.

  3. Look for the values used by your referral links. These can vary by platform, campaign and link. For example, a non-Shopify link may use referralcandy / direct. Use the values in your own reports rather than assuming every store uses the same labels.

  4. Choose a date range and compare metrics such as Sessions and Engagement rate for the relevant rows. These describe activity recorded by GA4; they are not a count of every referral-link click.

For this task, use session-scoped dimensions. First user dimensions describe how users were first acquired, which can differ from the source associated with a later visit. See Google's comparison of User acquisition and Traffic acquisition.

Shopify merchants

ReferralCandy's standard Shopify redirect uses referral as the source and affiliate as the medium. Use the Session campaign value, where available, to help narrow the results to your campaign. Campaign names can vary, and the source/medium pair alone does not identify a particular ReferralCandy campaign.

Under Google's default channel rules, an affiliate medium maps to Affiliates. Check the source/medium values when looking for this traffic; a source named referral is a different field from the Referral channel group.

When you see direct

A manually tagged row such as referralcandy / direct uses a custom medium value. It differs from Google's (direct) / (none) classification, which means the traffic has no clear referral source.


Understand the limits

  • Traffic labels describe store-session acquisition. These labels alone do not tell you where an advocate signed up or prove which widget caused a referred sale.

  • Purchase metrics depend on your store's GA4 setup. GA4 can report purchases when the relevant ecommerce events are collected. A GA4 purchase metric does not establish ReferralCandy's referral or reward eligibility.

  • Compare metrics with the same meaning. GA4 sessions and ReferralCandy referral or reward totals measure different things. Treating those totals as interchangeable can lead to the wrong conclusion.

Did this answer your question?