Connect Google Analytics 4 (GA4) to your ReferralCandy pages to understand visits to your referral or affiliate program. This setup measures page traffic; it does not give you a complete view of a customer's journey through signup, purchase, and rewards.
Step 1: Set up GA4 and find your Measurement ID
We recommend using a different GA4 property from the one you use for your eCommerce store. This helps you distinguish traffic on ReferralCandy pages from traffic on your store.
Already have a GA4 property for your ReferralCandy pages? You can use its web data stream. Follow Google's guide to finding your Measurement ID, then continue to Step 2 below.
Follow Google's guide to setting up Analytics to create a GA4 property and a Web data stream.
When Google asks for the stream's Website URL, use the base of your ReferralCandy portal URL, such as
https://yourstore.refr.cc/. To find it:From the ReferralCandy dashboard, open Referral campaigns or Affiliate campaigns, select your campaign, and open its Overview.
From your Shopify admin, open Apps > ReferralCandy, then Referral campaigns or Affiliate campaigns. Select your campaign and open its Overview.
Find the Join Page link beside Promote your program or Promote your affiliate program. Copy only the base URL through
.refr.cc/, leaving out any path after it.Complete Google's web data-stream setup and copy your Measurement ID. This GA4 web-stream ID starts with
G-. If you need help locating it, see Google's Measurement ID guide.
Step 2: Add your Measurement ID to ReferralCandy
Open your Marketing analytics page:
From the ReferralCandy dashboard, go to Integrations > Marketing analytics.
From your Shopify admin, open Apps > ReferralCandy, then go to Integrations > Marketing analytics.
Paste your Measurement ID into the Google analytics ID field.
Save your changes.
After setup, pageviews on your referral or affiliate program may take up to 24 hours to appear in your Google Analytics dashboard.
What can you learn from your page traffic?
Once data is available in the property connected to your ReferralCandy pages, you can use it to:
See which program pages receive views. Use the Pages and screens report to review recorded page traffic. Views include repeat visits; they are not a count of unique referrals or successful signups.
Compare traffic over time. Look at pageviews before and after you promote your program to see whether traffic changed. A change in views alone does not show what caused it.
Prioritize your page previews. Use the Tech details report to see the device categories and browsers visitors use, then focus your own page checks on those environments. The report alone does not identify a page problem.
Use these reports to understand page traffic. Pageviews alone do not tell you how many people signed up, made a referred purchase, or earned a reward.
Other ways to use Google Analytics
Optional: Track visitors to your eCommerce store
Optional: Track visitors to your eCommerce store
To measure visits to your eCommerce store, set up Google Analytics on your store as well, adding the tracking code for the property you use for your store. We recommend a separate property from the one used for ReferralCandy pages so you can keep the traffic reports separate.
Adding your Measurement ID to ReferralCandy does not install tracking on your store. For current instructions on viewing page traffic, see Google's Pages and screens report guide. This is a page-traffic report, not a report of completed referrals or rewards.
Can I set up cross-domain tracking or custom Google Analytics events?
Can I set up cross-domain tracking or custom Google Analytics events?
You may want a unified view to track a user as they go from your ReferralCandy pages, all the way to making a purchase at your store. Then, back to ReferralCandy as they go on to refer their friends. This requires cross-domain tracking.
Alternatively, you may want to customize the events you track in GA like defining your own conversion metrics triggered by button clicks or form submissions.
ReferralCandy's Google Analytics integration doesn't support cross-domain tracking or custom event definitions. If your measurement setup needs them, let us know — our team can log the request as feedback for future improvements.
