{"id":152205,"date":"2022-01-13T12:00:33","date_gmt":"2022-01-13T12:00:33","guid":{"rendered":"https:\/\/en-gb.wordpress.org\/plugins\/danp-google-analytics-pageview-sync\/"},"modified":"2022-01-26T16:56:41","modified_gmt":"2022-01-26T16:56:41","slug":"danp-google-analytics-pageview-sync","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/danp-google-analytics-pageview-sync\/","author":294237,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"5.9.13","requires":"5.0","requires_php":"8.0.0","requires_plugins":"","header_name":"DanP Google Analytics Pageview Sync","header_author":"Dan Poulton","header_description":"Sync Google Analytics views statistics to your WordPress database, sort by views in WP_Query, output pageviews on your pages\/posts &amp; see views in WordPress Admin.","assets_banners_color":"ee6123","last_updated":"2022-01-26 16:56:41","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/dan-p.net\/donate","header_plugin_uri":"https:\/\/dan-p.net\/wordpress-plugins\/danp-google-analytics-pageview-sync","header_author_uri":"https:\/\/dan-p.net","rating":0,"author_block_rating":0,"active_installs":0,"downloads":987,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>This is the first version!<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2657268,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2657268,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2657268,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2657268,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2657268,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"This is where you can add your Bitly API token and generate short URLs for all posts and pages. Location: Dashboard &gt; Settings &gt; Reading."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1005,3280,7175],"plugin_category":[],"plugin_contributors":[206641],"plugin_business_model":[],"class_list":["post-152205","plugin","type-plugin","status-publish","hentry","plugin_tags-google-analytics","plugin_tags-page-views","plugin_tags-pageviews","plugin_contributors-danpoulton","plugin_committers-danpoulton"],"banners":{"banner":"https:\/\/ps.w.org\/danp-google-analytics-pageview-sync\/assets\/banner-772x250.png?rev=2657268","banner_2x":"https:\/\/ps.w.org\/danp-google-analytics-pageview-sync\/assets\/banner-1544x500.png?rev=2657268","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/danp-google-analytics-pageview-sync\/assets\/icon-128x128.png?rev=2657268","icon_2x":"https:\/\/ps.w.org\/danp-google-analytics-pageview-sync\/assets\/icon-256x256.png?rev=2657268","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/danp-google-analytics-pageview-sync\/assets\/screenshot-1.png?rev=2657268","caption":"This is where you can add your Bitly API token and generate short URLs for all posts and pages. Location: Dashboard &gt; Settings &gt; Reading."}],"raw_content":"<!--section=description-->\n<p>Export the Google Analytics pageviews for all your pages and posts, and copy the data into your WordPress database.<\/p>\n\n<p>See your pageviews in the WordPress Admin screen next to your pages and posts!<\/p>\n\n<p>You can then order your pages and posts by pageviews, using the \"danp-dot-net-ga-page-views\" meta key.<\/p>\n\n<p>Plus, you can output the number of pageviews to your visitors, by using the shortcode like this:<\/p>\n\n<ul>\n<li>Automatically detect the ID of the page you're using the shortcode on: &#091;danp-ga-pageviews&#093;<\/li>\n<li>Set the page\/post ID and output that anywhere you like &#091;danp-ga-pageviews id=999&#093;<\/li>\n<\/ul>\n\n<p><a href=\"https:\/\/dan-p.net\/wordpress-plugins\/danp-google-analytics-pageview-sync\">Getting Started Guide<\/a><\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20get%20a%20google%20analytics%20account%3F'><h3>How do I get a Google Analytics account?<\/h3><\/dt>\n<dd><p>You can easily set up a Google Analytics account with any Google Account. See this <a href=\"https:\/\/support.google.com\/analytics\/answer\/1008015?hl=en\">support article<\/a> from Google.<\/p><\/dd>\n<dt id='how%20do%20i%20get%20a%20google%20api%20token%3F'><h3>How do I get a Google API token?<\/h3><\/dt>\n<dd><p>You will need a JSON API Token from <a href=\"https:\/\/console.cloud.google.com\/apis\/\">Google Cloud Platform<\/a>. See the <a href=\"https:\/\/dan-p.net\/wordpress-plugins\/danp-google-analytics-pageview-sync\">quick start guide<\/a>.<\/p><\/dd>\n<dt id='how%20do%20i%20grant%20access%20to%20my%20google%20analytics%20profile%3F'><h3>How do I grant access to my Google Analytics profile?<\/h3><\/dt>\n<dd><p>You need to grant your Google Cloud Platform Service Account with permissions in Google Analytics. See the <a href=\"https:\/\/dan-p.net\/wordpress-plugins\/danp-google-analytics-pageview-sync\">quick start guide<\/a>.<\/p><\/dd>\n<dt id='how%20do%20i%20get%20a%20google%20analytics%20%22profile%20id%22%3F'><h3>How do I get a Google Analytics \"Profile ID\"?<\/h3><\/dt>\n<dd><p>Login to Google Analytics and click Admin. See the <a href=\"https:\/\/dan-p.net\/wordpress-plugins\/danp-google-analytics-pageview-sync\">quick start guide<\/a> for more information.<\/p><\/dd>\n<dt id='where%20do%20i%20enter%20my%20api%20token%3F'><h3>Where do I enter my API token?<\/h3><\/dt>\n<dd><p>A new page is created in the WordPress Dashboard called 'Google Analytics Pageview Sync'.<\/p><\/dd>\n<dt id='how%20do%20i%20change%20plugin%20settings%3F'><h3>How do I change plugin settings?<\/h3><\/dt>\n<dd><p>A new page is created in the WordPress Dashboard called 'Google Analytics Pageview Sync'. You can enter your Profile ID and upload your JSON API Key there.<\/p><\/dd>\n<dt id='how%20do%20i%20start%20syncing%20data%3F'><h3>How do I start syncing data?<\/h3><\/dt>\n<dd><p>A new page is created in the WordPress Dashboard called 'Google Analytics Pageview Sync'. You can start a bulk update there and update the settings to automatically sync pageviews either daily or weekly.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>This is the first version!<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>The Google API PHP Client is now bundled as a ZIP folder to prevent issues. The plugin requires file permissions to unzip it.<\/li>\n<\/ul>","raw_excerpt":"Sync pageview data from Google Analytics to your WordPress Database, enabling you to sort posts, view pageview data in the WordPress Dashboard, and ou &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/152205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=152205"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/danpoulton"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=152205"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=152205"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=152205"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=152205"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=152205"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=152205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}