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 over a year ago

Connecting Google Analytics to your referral program pages is extremely easy. Sign up for a Google Analytics account if you haven't yet.


Step 1: Create a separate Google Analytics Property

We highly recommend creating a different Google Analytics Property from the one you're already using for your eCommerce store. This will help you distinguish between the sessions on ReferralCandy and those on your store.

Note: Universal Analytics properties will stop collecting data starting July 1, 2023. We recommend that you create a new Google Analytics 4 property (GA4) for your referral program. Learn more

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

Fill out the necessary fields and choose a platform. You will be asked to set up data stream. Input your ReferralCandy Portal URL as the Website URL. You can find this URL at the top of your campaign's Email & Pages section:

Add a stream name and click Create Stream. Your Web stream details will pop up. Copy the Measurement ID provided (this is also called a Google tag ID). Complete your setup.

If you already have an existing Google Analytics property, please refer to this article to learn how you can find your Google tag ID.

How do I know if I'm using Universal Analytics or GA4?

  • Universal Analytics property IDs start with UA- and end with numbers:

    (UA-XXXXXXXXX-1)

  • Google Analytics 4 property IDs start with G- and end with numbers:

    (G-XXXXXXXXX)

Step 2: Add your Google tag ID to ReferralCandy pages

Return to the ReferralCandy Dashboard, go to Integrations and click Marketing Analytics. Paste your Google tag ID in the Google Analytics ID field. Click Save Changes.

That's it! Pageviews to your referral program may take up to 24 hours to appear on your GA dashboard.

Sample stats you will see on Google Analytics


Other ways to optimize Google Analytics

Optional: Track Visitors to Your eCommerce Store

Do you want to 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 your 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 (and back to ReferralCandy as they go on to refer their friends). This requires something called "cross-domain tracking".

Alternatively, you may be looking to customize the events you track in GA, like defining your own conversion metrics which are triggered by button clicks or form submissions. Getting these set up is rather involved and will require 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 email and pages offer the ability to add custom code (we do not provide code assistance through the support team). We recommend getting your developers' help to do this.


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


Did this answer your question?