Google Analytics

You can integrate Google Analytics conversion tracking with Memberful. When someone signs up for a new membership on your website with Memberful we send a Google Analytics eCommerce event—specifically a transaction—to Google Analytics (GA) with the following data:

In this help doc:

Enable eCommerce

Toggle on Enable Ecommerce in your eCommerce Settings.

eCommerce settings

Set up 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 Google Analytics Tracking ID.
  4. Choose Universal Analytics.
  5. Add the following code snippet to the Custom GA Code field to allow for cross-domain auto linking on your website, which is required because Memberful is hosted from a different domain.

        // Auto link Memberful links
        ga('require', 'linker');
        ga('linker:autoLink', [''], true);
  6. Click Save changes. After 24-48 hours, you can log into your Google Analytics account to view your stats.

Set up manual integration

For non-WordPress sites, you’ll need to enable Google Analytics to track users when they click a Memberful link on your site. Choose the instructions that match how you include Google Analytics on your site.

With analytics.js (Most common)

If you use analytics.js, update the code on your site to include the linker configuration:

Replace UA-XXXX-Y with the ID of the Google Analytics property to which you want to send data.

    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

    ga('create', 'UA-XXXX-Y', 'auto');
    ga('send', 'pageview');

    // Auto link Memberful links
    ga('require', 'linker');
    ga('linker:autoLink', [''], true);

For more details, refer to the Google Analytics documentation.

With Google Tag Manager

If you include Google Analytics on your site using Google Tag Manger, enable cross domain tracking in Tag Manager.

In step 3, enter in the Auto Link Domains field.

With gtag.js (Advanced)

If you send events to Google Analytics using gtag.js, include the linker parameter when you configure your property.

Replace GA_MEASUREMENT_ID with the ID of the Google Analytics property to which you want to send data.

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'GA_MEASUREMENT_ID', {
    'linker': {
      'domains': ['']

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

Test Google Analytics

After you’ve enabled cross-domain measurement using one of the above methods, right click on a 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:


Configure Memberful checkout

Navigate to Settings → Integrate → Services from your Memberful dashboard, and activate the Google Analytics integration. You'll be redirected to Google where you might be asked to choose a Google Account.

You will need to give us read only access to your Google Analytics. We only read your data once to pull the property ID and we don't ever request or store any other additional data from Google Analytics.

Authorize Memberful for Google Analytics

Choose your property and click Connect Property.

Connect property

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

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. 😀


General +-

Quickstart guides +-

Plans +-

Settings +-

How to +-

WordPress +-

Other website builders +-

Email newsletters +-

Community forums +-

Course builders +-

Affiliate tracking +-

Analytics +-

Custom development / API +-