Skip to main content
Integrating Google Analytics with ReferralCandy

Integrate Google Analytics to track visitors to your referral program

Adam avatar
Written by Adam
Updated this week

Create a Google Analytics property and add the Google ID tag to ReferralCandy pages to track and monitor visitor data on your referral or affiliate campaign's pages.


Step 1: Create a separate Google Analytics Property

It's highly recommend that you create a different Google Analytics (GA4) property from the one you're already using for your eCommerce store. This helps you distinguish between the sessions on ReferralCandy and those on your store.

Already have a GA4 property? If you already have an existing Google Analytics property, refer to this article to learn how to find your Google tag ID.

To create a GA4 property:

  1. Log in to your Google Analytics account and click Create Property.

  2. Fill out the necessary fields and choose a platform. You need to set up a data stream. Input your ReferralCandy portal URL as the Website URL. For example, https://yourstore.refr.cc/. To find this URL:

    • From the ReferralCandy dashboard, go to Campaigns > Select a campaign > Emails & Pages. Copy the URL until /refr.cc next to Promote your referral program.

    • From your Shopify admin, go to Campaigns > Select a campaign. In the Get started section, click Campaign details. Copy the URL until /refr.cc next to Join page link.

  3. Add a stream name and click Create Stream.

  4. A popup shows your Web stream details. Copy the Measurement ID provided, also known as a Google tag ID.

  5. Make sure to complete the necessary steps to proceed.

Step 2: Add your Google tag ID to ReferralCandy pages

  1. Go to your Marketing analytics page:

  2. Paste the copied Google tag ID in the Google analytics ID field.

  3. Save the changes.

Once the integration is complete, pageviews to your referral or affiliate program may take up to 24 hours to appear on your GA dashboard.

Sample stats on Google Analytics


Other ways to optimize Google Analytics

Optional: Track visitors to your eCommerce store

Measure your referral program's success at driving traffic to your eCommerce store. To track the number of customers ReferralCandy sends to your store, you need to set up a separate GA property and add the tracking code for that property to your store's code.

Here's how to interpret the data we send to Google Analytics.

Developer mode: Cross-domain tracking, custom 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. Getting these set up requires you to manually edit the code on your online store and your ReferralCandy pages.

ReferralCandy's direct Google Analytics integration does not support such customization. However, our emails and pages offer the ability to add custom code. We recommend getting your developers' help to do this as ReferralCandy doesn't support troubleshooting of custom code.


๐Ÿ’ฌ Need help? Click the chat widget on the right to start a conversation. Learn more


Did this answer your question?