Search for keywords, like "PayPal", "Recurring Donations", and more.

Documentation / Add-ons / Google Analytics

Google Analytics

The Google Analytics add-on for GiveWP allows you to seamlessly collect e-commerce data related to donations on your GiveWP-powered donation website. The following article will walk you through the steps to get connected, so that data flows from your site to Google Analytics.

Note: Google has announced end-of-life for the Universal Analytics platform, encouraging the move over to Google Analytics 4 (GA4). GiveWP supports either option, but GA4 is recommended if you are setting up Google Analytics for the new platform. 

GiveWP
Get the Google Analytics Donation Tracking Add-on View Add-on

Getting Started with Google Analytics and GiveWP

In order to start tracking your donation and donor activity in Google Analytics with GiveWP you’ll need the following:

  1. GiveWP installed and activated on your site.
  2. A plan that includes the Google Analytics add-on for GiveWP.
  3. An account already set up with Google Analytics.
  4. Google Analytics already connected to your site. 

Here are instructions on installing and activating Give Add-ons.

Note: You can always access your add-on purchase receipts, downloads, and licenses from your GiveWP Account dashboard.

Important: GiveWP’s Google Analytics add-on assumes Google Analytics is actively operational on your site, connected by some other means. There are a variety of plugins available in the plugin directory, or you can manually add the tracking script using a code snippet, or your theme’s settings for adding header or footer scripts. The KadenceWP theme’s Pro Bundle, for example, has a method for adding scripts to the header or footer of your site. You should insert the script into the header. Here’s what that looks like in the Customizer settings for KadenceWP. 

Adding custom GA scripts
Add custom Google Analytics scripts.

Once your site is connected to Google Analytics, you will see real-time data in your Google Analytics account dashboard. 

Setting Up your Google Analytics Account

To function properly, the add-on has a number of requirements that are easy to check for and implement.

Pro tip: Some Analytics solutions only track visits from folks who are not logged into WordPress. If you are not seeing any real-time data, try accessing your site from a logged-out browser.

Connecting to Google Analytics 4

Once you are set up with Google Analytics on your site, install and activate the Google Analytics add-on for GiveWP. Then, navigate to the settings at Donations > Settings > Google Analytics.

GiveWP requires two pieces of information to successfully send data to the proper spot in Google Analytics: the Web Stream Measurement ID and the Measurement Protocol API Secret. 

To find your Web Stream Measurement ID, navigate from your Google Analytics dashboard to Admin > Data Streams > [your stream] > Measurement ID.

Copy and paste that ID into your GiveWP settings. 

Your Measurement Protocol API Secret is located in the Google Analytics dashboard at Admin > Data Streams > [your stream] > Measurement Protocol API Secrets

If you’ve not created one already, select to create one, and then paste that value into your GiveWP settings. 

The remainder of the settings on the GiveWP side are optional, and allow for tracking of test donations, refunds, and other values.

Recurring Donations And Google Analytics

One of the most helpful things you can do in tracking donation revenue is to be able to distinguish between one-time donations, the first donation of a subscription, and all subsequent renewals on that subscription. 

If you are using GiveWP’s popular Recurring Donations add-on, this is handled automatically for you using Item Categories. GiveWP saves one of three categories for Item Category 3: One Time, Subscription, and Renewal.  In Google Analytics, you can build a report for Item Category 3, and analyze that data over time. 

Building Custom Donation Reports in Google Analytics 4

Google Analytics 4 has robust ways of building out reports that allow you plan your marketing and outreach campaigns using real data from previous campaigns.

Here’s the complete list of data sent to Google:

  • Item Id → Form ID
  • Item Name → Form Title
  • Item Brand → “Fundraising”
  • Affliliation → Site Title
  • Item Category → “Donations”
  • Item Category 2 → Payment Gateway
  • Item Category 3 → One time/Recurring/Renewal (requires Recurring Donations to be active on the site)

Note: Developers! Use the give_google_analytics_ga4_purchase_event_data filter to add additional data from GiveWP’s side to the data sent to Google.

To build a Custom Report within GA4, navigate to the “Explore” tab, and you can use the interface there to build out a custom report. The below example uses a “Free Form” report.

Select “Free Form” and then click the plus icon next to the “Dimensions” section on the left sidebar. Search for “Item Category” and then select and import the Item Category, Category 2, and Category 3. 

Once those are added to the list of available dimensions, you’ll similarly want to add Metrics. This example uses Ecommerce Revenue to build a simple report showing the difference in revenue over the given time period between one-time donations, the first donation on a subscription, and renewal donations.

Connecting to Legacy Google Analytics

To connect to your Universal Analytics account, keep in mind that you still have to have some other mechanism for the site to be previously connected to Google Analytics. Once you’ve done that, add in the tracking ID found in your Property settings at Admin > Property > Property settings to the GiveWP settings page at Donations > Settings > General > Google Analytics. 

The additional options on that screen allow for customizing specific data that is tracked, and all of them are optional. 

Data collected in Universal analytics will show up in Conversions > Ecommerce > Overview within your Google Analytics dashboard.  

FAQ’s


Last updated 3 days ago

Start Fundraising Better Today!

Get GiveWP Today
GiveWP Plans

Give Fundraising Newsletter

The Give Fundraising Newsletter will help you navigate the world of online fundraising like a pro. Each week we send out fundraising advice, Give LIVE announcements, and exclusive offers to our newsletter subscribers.