Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add Google Analytics to your Website

Info

These instructions have been updated to work with the recently released Google Analytics 4. Currently, the RescueGroups.org Affiliates feature cannot be used with the latest version of Google Analytics.

With Google Analytics, you can see which pages people view the most, where they came from (search engine, other websites), which pages they viewed, how long they stayed on each page and how they navigate through your website.

...

In your RescueGroups.org account:

  • Log in to your account at RescueGroups.org and click the Login button.
  • Click Website > Affiliates.
  • Next to Google Analytics, paste in the code.
  • Click Enable Google Analytics for Website.
  • Click Save Affiliates.
  • Create a custom code snippet named "GA Universal"
  • Paste your Google Analytics code into the new snippet. It will resemble the code below, but with your specific Google Analytic ID included:

    Code Block
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=XXXXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'XXXXXXXXXX');
    </script>
     
  • Save the code snippet
  • Go to Website > HTML Head and click Edit.
  • Add the snippet to the Page Header HTML field before any other content. This article will help you to add a snippet.
  • Click Save

Return to your Google Analytics account and you should be able to confirm that it is collecting data. 

More Search Engine Optimization Tips

...

The Open Graph Protocol enables you to integrate your Web pages into the social graph. The structured data you provide via the Open Graph Protocol defines how your page will be represented on Facebook. Open Graph tags are added to your Website via Meta Tags. The type of tags used should represent the content of the page. For example, Your homepage tags would contain content about the site as a whole, while tags on an event page or blog post would focus on the nature of the story.