{"id":675,"date":"2022-10-31T10:37:54","date_gmt":"2022-10-31T14:37:54","guid":{"rendered":"https:\/\/sites.cru.org\/wp-resources\/?post_type=tutorials&#038;p=675"},"modified":"2022-10-31T10:37:54","modified_gmt":"2022-10-31T14:37:54","slug":"how-to-add-the-google-snippet-to-your-site","status":"publish","type":"tutorials","link":"https:\/\/sites.cru.org\/wp-resources\/tutorials\/how-to-add-the-google-snippet-to-your-site\/","title":{"rendered":"How To Add The Google Snippet To Your Site"},"content":{"rendered":"<p>Whether you are managing a Cru Site or a Microsite (part of cru.org) the process for adding the Google Analytics snippet to your website is the same.<\/p>\n<p><em>This tutorial assumes you\u2019ve already received your analytics snippet. If you haven\u2019t please contact the Analytics Team.<br \/>\n<\/em><\/p>\n<p><strong>1.<\/strong> In the left navigation of your WordPress admin panel click on HFCM. This is the Header Footer Code Manager.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-155\" src=\"https:\/\/sites.cru.org\/wptutorials\/wp-content\/uploads\/sites\/206\/2020\/01\/Screen-Shot-2020-04-17-at-9.21.57-AM.png\" alt=\"\" width=\"147\" height=\"43\" \/><\/p>\n<p><strong>2.<\/strong> Near the top of the page click on the blue Add New Snippet button.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-156\" src=\"https:\/\/sites.cru.org\/wptutorials\/wp-content\/uploads\/sites\/206\/2020\/01\/Screen-Shot-2020-04-17-at-9.23.05-AM.png\" alt=\"\" width=\"225\" height=\"51\" srcset=\"https:\/\/sites.cru.org\/wp-resources\/wp-content\/uploads\/sites\/206\/2020\/01\/Screen-Shot-2020-04-17-at-9.23.05-AM.png 494w, https:\/\/sites.cru.org\/wp-resources\/wp-content\/uploads\/sites\/206\/2020\/01\/Screen-Shot-2020-04-17-at-9.23.05-AM.png?resize=300,68 300w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/p>\n<p><strong>3.<\/strong> In the form that appears:<\/p>\n<p style=\"padding-left: 40px;\"><strong>a.<\/strong> Give the Snippet a name, like &#8220;Google Analytics Snippet&#8221;<br \/>\n<strong>b.<\/strong> For Snippet Type select &#8220;Javascript&#8221;<br \/>\n<strong>c.<\/strong> For Site Display select &#8220;Site Wide&#8221;<br \/>\n<strong>d. <\/strong>For Location select &#8220;Footer&#8221;<br \/>\n<strong>d.<\/strong> Paste the entire Javascript code you received into the Snippet\/Code box at the bottom<br \/>\n<strong>e.<\/strong> Click the blue Save button at the bottom of the form<\/p>\n<p><strong>4.<\/strong> If you are using a caching plugin on your site clear the cache so the snippet gets added immediately, otherwise it could take a little time for the snippet to get applied.<\/p>\n<p>You&#8217;re done.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"categories":[6,1],"class_list":["post-675","tutorials","type-tutorials","status-publish","hentry","category-cru-microsite","category-cru-site"],"acf":[],"jetpack_sharing_enabled":true,"meta_box":[],"_links":{"self":[{"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/tutorials\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/tutorials"}],"about":[{"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/types\/tutorials"}],"version-history":[{"count":1,"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/tutorials\/675\/revisions"}],"predecessor-version":[{"id":676,"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/tutorials\/675\/revisions\/676"}],"wp:attachment":[{"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/media?parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.cru.org\/wp-resources\/wp-json\/wp\/v2\/categories?post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}