In This Article:

    Tracking donations on Google Analytics

    In This Article:


      Inserting the Google Analytics (GA) script(s) into your template can track link clicks.  Inserting a GA script into your donation page can show when donors attemplt donations.  The best way to record successful donations in GA is to install a script into the thank you page that follows a donation.  That's because the thank you page only appears for successful donations, and the donations that get there should be recorded in GA.


      Here are some steps that you can use to install the GA code and configure it to pass donations to eCommerce. 

      1. Edit a template used by thank you pages that follow donation pages.  (If there are more than one then you'll need to repeat this process for each template.)
      2. Use the browser's search tool to locate the </body> tag.
      3. Insert a blank line just before the </body> tag.


      1. Click here to see the page where the solution lives.
      2. When the page appears, click on the Raw button.  A window will appear that only contains the solution.


      1. Copy the contents of the page and close the window.
      2. Paste the copied text into the newly inserted line in Salsa.
      3. Configure the script
        1. Replace YOUR_DOMAIN with the domain of our website (for example
        2. Replace YOUR_GA_KEY with your Google Analytics key (for example,UA-6666666-6)
      4. Save the page.
      5. Test!


      A great big thank you to Brett Gerstein at Fliptide for going the extra mile and sharing a copy of a working script.  Thanks, Brett!


      If you have any questions, then please gather this information.

      • Your organization_KEY
      • Your chapter_KEY if you are in a chapter
      • The template_KEY of the modified template
      • The thank_you_KEY of a thank you page that uses the template
      • The URL of a donation page that uses the thank you page
      • A screenshot of the page, if possible.

      Send this information to, and we'll be glad to help

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request



      Please sign in to leave a comment.