Documentation Index

Fetch the complete documentation index at: https://www.civicplus.help/llms.txt

Use this file to discover all available pages before exploring further.

Embed Google Analytics

Prev Next

This article will show you how to obtain the Google Analytics code that we need to insert into your site. It includes information regarding the tracking code and the script needed to start tracking.

Instructions

  1. Navigate to the Google Marketing Platform

  2. Click Sign In to Analytics if you have an existing account or click Start For Free if you want a new account  Google Analytics page with highlighted options for signing in and getting started today.

  3. Navigate to the Admin tab
    Google Analytics navigation menu highlighting the admin tab.

  4. On the Admin page, under Data Collection and Modification, click Data Streams
    Admin settings for account and property management, highlighting data streams option.

  5. Select the Web tab and click on your data stream
    Data streams section showing web option and CivicRec Help Center details.

  6. Navigate to the Google Tag section and click View tag instructions
    Instructions for implementing Google tag and managing connected site tags displayed on screen.

  7. Select the install manually tab to see the JavaScript code snippet that you need to copy and paste
    highlighted code and instructions for manually installing Google Tag Manager on a website page.

    Note: We do not need the Tracking ID number, but we need the script that is in the Website Tracking > Global Site Tag box

    • Example:(functions(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].I=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-00000000-1','auto'); ga('send','pageview');

  8. If you want to install your tracking solution for an entire site, send the Script to our Support Team