Integrate with Google Analytics

You can integrate Google Analytics 4 (GA4) conversion tracking with Memberful. When someone completes a checkout through Memberful, we send an ecommerce event to Google Analytics.

In this help doc:

Add the Memberful domain in your GA4 settings

Follow Google’s documentation to set up cross-domain measurement. Under Domain add memberful.com.

Create a data stream to receive a Measurement ID

From your GA account, click Admin (gear at the bottom-left), select the Property, and then Data Streams. From there you can either create a new stream or select an existing one to receive a Measurement ID.

Your Measurement ID will look like this: G-XXXXXXXXXX. Keep it handy as you'll use it in the following steps.

Configure your site using one of the following methods

WordPress plugin

  1. Install and activate the GA Google Analytics plugin on your WordPress site.
  2. Visit Settings → Google Analytics → Plugin Settings.
  3. Enter your GA Tracking ID.
  4. Choose Google Tag.
  5. Click Save changes. After 24-48 hours, you can log into your Google Analytics account to view your stats.

The last step is to activate Memberful's Google Analytics integration.

Google Tag Manager

For non-WordPress sites, you’ll need to enable Google Analytics to track users when they click a Memberful link on your site.

If you include Google Analytics on your site using Google Tag Manager, enable cross-domain measurement for Google Analytics 4. In step 5, enter memberful.com under Domain.

The last step is to activate Memberful's Google Analytics integration.

gtag.js

For non-WordPress sites, you’ll need to enable Google Analytics to track users when they click a Memberful link on your site.

Replace TAG_ID with your Measurement ID from earlier.

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'TAG_ID');
</script>

For more details, refer to the gtag.js documentation.

The last step is to activate Memberful's Google Analytics integration.

Test Google Analytics

After you’ve enabled cross-domain measurement using one of the above methods, right-click the Memberful link on your site and select Open Link in New Tab. You should see a linker parameter in the address bar that looks like this:

_gl=2*2skltp7...

Configure Memberful’s Google Analytics integration

Navigate to Settings → Third-Party Services from your Memberful dashboard, and activate the Google Analytics integration. You'll need to input the Measurement ID you found earlier.

You're done! Once you connect to Stripe, and leave test mode, Memberful will track all new purchases in Google Analytics.

Keep in mind that certain privacy-focused browsers (like Safari and Firefox) block Google Analytics events, and some members may use ad-blocker plugins.

Track Google Ads

Once set up, you can measure which orders (and the value of those orders) are attributable to your Google Ads. Google Ads is another sales channel that will show up in Google Analytics. After setting up your Google Ad campaign, the Google Ads data is typically pulled right into Google Analytics.

If you want to attribute order amount to those Google Ads, you'll need to make sure the Google Analytics-Memberful integration is configured and that you create events to assign attribution.

Can't find what you're looking for? We'd love to help! 💪

Send us a message through the orange chat bubble in the lower right corner of the page. You'll hear back within a few hours Monday - Friday. 😀