{"id":884,"date":"2025-03-24T14:27:56","date_gmt":"2025-03-24T14:27:56","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/google-analytics\/"},"modified":"2025-08-12T15:32:07","modified_gmt":"2025-08-12T14:32:07","slug":"google-analytics","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/extensions-features\/google-analytics\/","title":{"rendered":"Google Analytics"},"content":{"rendered":"\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">This setup guide will run through a typical setup of the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/google-analytics\/\">Google Analytics<\/a> addon from start to finish.<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/wpgeodirectory.com\/downloads\/google-analytics\/\" target=\"_blank\" rel=\"noopener\">GeoDirectory Google Analytics<\/a> WordPress plugins allows you to add a button to the frontend that can be used to display Google Analytics stats and information on your site.&nbsp;You can add this button as a widget, block or shortcode.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">For a full list of features, see the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/google-analytics\/\">Google Analytics<\/a> product page.<\/span><\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-3 bg-image-fixed list-group list-group-flush list-group-numbered\">\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p><strong>UA Account<\/strong><br>Sign in to your UA-4 Account in another tab..&nbsp;<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p><strong>Install and Activate<\/strong><br>Use the GeoDirectory Extensions page to <strong>Install and activate the addon<\/strong>,<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p><strong>Settings for Integrating Google Analytics<\/strong><br>Proceed to the settings page at<\/p>\n\n\n\n<p><strong>WP &#8211; Admin &gt; GeoDirectory &gt; Settings &gt;&nbsp;Google&nbsp;Analytics<\/strong><\/p>\n\n\n\n<p>Click <strong>&#8216;Connect&#8217;<\/strong><\/p>\n\n\n\n<p>Authorize the connection to your UA-4 account and save settings.<\/p>\n\n\n\n<p>Proceed to the settings page at<\/p>\n\n\n\n<p><strong>WP &#8211; Admin &gt; GeoDirectory &gt; Settings &gt;&nbsp;Google&nbsp;Analytics<\/strong><\/p>\n\n\n\n<p>Click <strong>&#8216;Connect&#8217;<\/strong><\/p>\n\n\n\n<p>Authorize the connection to your UA-4 account and save settings.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-success mb-3\" role=\"alert\"><span class=\"fas fa-check-circle me-2\"><\/span><span class=\"flex-grow-1\">The\u00a0Google\u00a0Analytics WP plugin comes with <strong>sane defaults<\/strong> meaning the <strong>default settings will work for the majority of users<\/strong>, however, there are many customizations that can be done via the settings, for a full explanation of what all the settings do please see our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/category\/frontend-analytics\/\">settings overview.<\/a><\/span><\/div>\n\n\n\n<p>Click &#8216;Authorize&#8217; to load your GA account and select the property\/account to use. Once set, it should look like this.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-EXfQ5e9nsX-1024x474.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Additional Settings<\/p>\n\n\n\n<p><strong>Add tracking code to the site?<\/strong> If you don&#8217;t have another plugin adding the tracking code to your site, be sure to turn that feature on.<\/p>\n\n\n\n<p><strong>Anonymize user IP?<\/strong> Do you need to do this for your privacy policy? If so, set it here.<\/p>\n\n\n\n<p><strong>Auto refresh active users?<\/strong> If you are checking to see if it works to show results, this can help with a short setting, then can be disabled.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p><strong>Adding the Widget<\/strong><br>Once you have setup Google Analytics, you can add the <strong>GD &gt;&nbsp;Google<\/strong><strong style=\"background-color: initial;\">&nbsp;Analytics widget <\/strong>to your site&#8217;s frontend. It can be displayed anywhere as a shortcode, widget area, or Gutenberg block.&nbsp;<\/p>\n\n\n\n<p>Usually this is added to the details page sidebar near GD Author Actions<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p><strong>Pricing Manager Integration<\/strong><br>Use the GeoDirectory Extensions page to <strong>Install and activate the addon<\/strong>,<\/p>\n\n\n\n<p>This is an upsell feature, &#8216;Access Google Analytics&#8217;.&nbsp;<\/p>\n\n\n\n<p>If you are using the premium Pricing Manager Addon, make sure to visit each package.<\/p>\n\n\n\n<p>Look for the option below to enable the listing owner ability to view the Google analytics widget. If this is not enabled, the listing owner won&#8217;t be able to see the Google Analytics button on their listing.<\/p>\n\n\n\n<p>In the Package &#8216;Features&#8217; Section you will find this &#8211; Enable to allow listing owners of this package to view Google Analytics<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-1B24M2MCrq.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Screenshots<\/h2>\n\n\n\n<p>The widget configuration options available in the widget settings (using the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/shortcode-builder\/\" target=\"_blank\" rel=\"noopener\">shortcode builder<\/a>).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-HxpJ7UQdsa.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Screens your listing owners can see when they click the Google Analytics button on their listing.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-tQd854BRwu.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-boR2QmYhb6.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ZRwy1VNgZe.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-hJvkmIA1XN.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/08\/geographic-dimensions-city.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The GeoDirectory Google Analytics WordPress plugins allows you to add a button to the frontend that can be used to display Google Analytics stats and information on your site.&nbsp;You can add this button as a widget, block or shortcode.&nbsp; Screenshots The widget configuration options available in the widget settings (using the shortcode builder). Screens [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,2],"class_list":["post-884","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-uncategorized"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/884\/revisions"}],"predecessor-version":[{"id":2128,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/884\/revisions\/2128"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=884"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}