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

Add Google Analytics code to your site

WordPress site

  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.

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

Non-WordPress site

The following is an example of the Google Analytics code to use on your website with cross-domain auto linking to Memberful enabled. Review the Google Analytics documentation to learn how to add this code to your site.

You must replace UA-XXXX-Y with your real Google Analytics ID in the code below.

  <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

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

    // Auto link Memberful links
    ga('require', 'linker');
    ga('linker:autoLink', ['memberful.com'], true);
  </script>

Configure Memberful checkout

Go to Settings → Integrate → Services in your Memberful dashboard and click Activate in the Google Analytics box:

Activate Google Analytics

You'll be redirected to Google where you might be asked to choose a Google Account. After that 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. 😀

Home

General +-

Quick start guides +-

How to +-

CMS Integrations +-

Email Newsletters +-

Discussion Forums +-

Course Builders +-

WordPress +-

Development / API +-