{"id":341,"date":"2018-10-05T11:14:02","date_gmt":"2018-10-05T11:14:02","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/google-analytics\/"},"modified":"2019-09-25T15:54:45","modified_gmt":"2019-09-25T15:54:45","slug":"google-analytics","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/google-analytics\/","title":{"rendered":"Google Analytics"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#setup\">Setup<\/a><br \/>\n<a href=\"#settings\">Settings<\/a><br \/>\n<a href=\"#design\">Design<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<a href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\" name=\"intro\">Introduction<\/a><\/h3>\n<ol>\n<li>Your directory can use the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/google-analytics\/\">Google Analytics addon<\/a> to allow users or visitors to see statistics about the listings on your site.<\/li>\n<li>You can also add analytics on any other page of your site.<\/li>\n<li>Listing analytics can be shown to:\n<ol>\n<li>User\/owner of the listing only (and administrators)<\/li>\n<li>Site administrator only<\/li>\n<li>All logged in users<\/li>\n<li>All visitors, logged in or not.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3><a href=\"#install\" name=\"install\">Installation<\/a><\/h3>\n<h4><a href=\"#prep\" name=\"prep\">Preparation<\/a><\/h4>\n<p>Check to be sure you have the following plugins installed before you get started.<\/p>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/status\/\" target=\"_blank\" rel=\"noopener noreferrer\">GeoDirectory V2<\/a><\/li>\n<\/ul>\n<h4><a href=\"#install\" name=\"install\">Installation<\/a><\/h4>\n<ol>\n<li><a href=\"https:\/\/wpgeodirectory.com\/your-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">Download the Addon from your account<\/a>.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/installing-addons\/\" target=\"_blank\" rel=\"noopener noreferrer\">Install the Addon<\/a>.<\/li>\n<\/ol>\n<h3><a href=\"#setup\" name=\"setup\">Setup<\/a><\/h3>\n<ol>\n<li>Login to <a href=\"https:\/\/analytics.google.com\/analytics\/web\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Analytics<\/a><\/li>\n<li>In the Google Analytics site, create an account and project for your site, if you don&#8217;t already have one.<\/li>\n<li>Now open the GD Addon settings at <em><strong>GeoDirectory &gt; Settings &gt; Google Analytics tab.<\/strong><\/em><\/li>\n<li>Choose whether or not to show analytics to selected users:<br \/>\n<img class=\"alignnone size-full wp-image-888\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ana12.png\" alt=\"\" width=\"625\" height=\"47\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ana12.png 625w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ana12-300x23.png 300w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/li>\n<li>Click the <em><strong>Authorize<\/strong><\/em> button to connect your site to Google Analytics; a popup will open:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/06\/ana7.png\" alt=\"\" width=\"440\" height=\"239\" \/><\/li>\n<li>Click <em><strong>Allow<\/strong><\/em>.<\/li>\n<li>That will generate a special code:<br \/>\n<img src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/06\/ana8.png\" alt=\"\" width=\"418\" height=\"50\" \/><\/li>\n<li>Copy that code and paste it in the <em><strong>Google analytics Auth Code<\/strong><\/em> field:<br \/>\n<img src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/06\/ana9.png\" alt=\"\" width=\"541\" height=\"58\" \/><\/li>\n<li>Now <em><strong>Save<\/strong><\/em>.<\/li>\n<li>This will populate the\u00a0<em><strong>Analytics Account<\/strong><\/em> field with the sites set up in your Analytics account:<br \/>\n<img src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/06\/ana10.png\" alt=\"\" width=\"527\" height=\"137\" \/><\/li>\n<li>Select the correct website profile and <em><strong>Save<\/strong><\/em>.<\/li>\n<\/ol>\n<h3><a href=\"#settings\" name=\"settings\">Settings<\/a><\/h3>\n<ol>\n<li>Click on <em><strong>Show Advanced<\/strong><\/em> to see more settings.<\/li>\n<li>Explanations are provided with the settings.<\/li>\n<\/ol>\n<h3><a href=\"#design\" name=\"design\">Design<\/a><\/h3>\n<h4><a href=\"#widgets\" name=\"widgets\">Widgets<\/a><\/h4>\n<p>GD &gt; Google Analytics<\/p>\n<p>Add the GD &gt; Google Analytics Widget to the sidebar that shows on your Listing Detail page to share analytics.<\/p>\n<p>Widget Settings<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/analytics-widget-settings.png\"><img class=\"alignnone size-full wp-image-344\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/analytics-widget-settings.png\" alt=\"\" width=\"332\" height=\"363\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/analytics-widget-settings.png 332w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/analytics-widget-settings-274x300.png 274w\" sizes=\"(max-width: 332px) 100vw, 332px\" \/><\/a><\/p>\n<p>Common Settings<\/p>\n<p>If you only want to show Analytics to listing owners and only on the Listing Detail page, try the following settings.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common.jpg\"><img class=\"alignnone size-large wp-image-532\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common-857x1024.jpg\" alt=\"\" width=\"300\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common-857x1024.jpg 857w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common-251x300.jpg 251w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common-768x917.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/ga-common.jpg 858w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<h4><a href=\"#shortcodes\" name=\"shortcodes\">Shortcodes<\/a><\/h4>\n<p><a href=\"#gd_google_analytics\" name=\"gd_location_description\"><br \/>\ngd_google_analytics<\/a><\/p>\n<pre><code>[gd_google_analytics user_roles=\"owner,administrator\"]<\/code><\/pre>\n<p>This shortcode can be used on the Detail page template.<\/p>\n<h3><a href=\"#support\" name=\"support\">Get Support<\/a><\/h3>\n<p>Get support on our forum, fnd out more here: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/<\/a><\/p>\n<h3><a href=\"#faq\" name=\"faq\">FAQ &#8211; Frequently Asked Questions<\/a><\/h3>\n<blockquote><p>I don&#8217;t have a Google Analytics account. Can I use this?<\/p><\/blockquote>\n<p>You will need to setup an account here: <a href=\"https:\/\/analytics.google.com\/analytics\/web\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/analytics.google.com\/analytics\/web\/<\/a><\/p>\n","protected":false},"featured_media":0,"parent":167,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/341"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/341\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/167"}],"next":[{"title":"List Manager","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/list-manager\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/469"}],"prev":[{"title":"Franchise Manager","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/franchise\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/655"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}