How do I setup Google Analytics tracking for my GiftTool pages?
Google Analytics enables you to track the visitors to your GiftTool pages, and generates reports that will help you with your marketing.
GiftTool officially supports and recommends using Universal Analytics (analytics.js), which is the latest version of Google Analytics and offers more flexibility for developers to customize their implementations. Nevertheless, GiftTool also supports Classic Analytics (ga.js). Although you're not required to upgrade to a Universal Analytics tracking code at this time, we strongly suggest you do. Classic Analytics (ga.js) tracking codes will be retired in the future.
Google Analytics is a trademark of Google Inc.
If you already have a Google Analytics account, find your tracking ID.
If not, get a Universal Analytics account from Google:
To avoid transactions made through GiftTool appearing as referrals through Google Analytics, you will need to add gifttool.com to your Referral Exclusion List. This feature is only available if you're using Universal Analytics.
Exclude gifttool.com from your referrer domains by following Google's instructions for Adding a referral traffic source.
If you have checked the box to enable Ecommerce tracking in Step 2d above, then you must also enable Ecommerce Tracking in in your Google Analytics account. Note that GiftTool currently only supports Basic Ecommerce, not Enhanced Ecommerce.
The following steps are adapted from the Google Analytics Help Center, where you can find information about enabling Ecommerce:
Cross domain tracking makes it possible for Google Analytics to see sessions on two related sites (such as your website and your GiftTool pages) as a single session. This is sometimes called site linking. Note that GiftTool does not support Google Tag Manager.
To set up cross domain tracking for multiple top-level domains, you need to modify the Google Analytics tracking code on each domain. Learn more from Google about how to Set up cross domain tracking by modifying the tracking code.
In the examples provided by Google:
If you are auto-populating your donation page with a modified URL, you can ask your developer to decorate your modified URL.
Since linker parameters are only valid for 2 minutes, if you decorate all the links when the page loads, and a user is on the page for more than 2 minutes, all of the links will have invalid linker parameters.
To solve this, you can decorate links in the mousedown and keydown event handlers so that links gets decorated when either the mouse is depressed or the link is navigated to via the keyboard. This ensures that:
Learn more from Google about Decorating HTML Links.
Was this information helpful?