{"id":19585,"date":"2023-09-21T09:57:06","date_gmt":"2023-09-21T13:57:06","guid":{"rendered":"https:\/\/memberpress.com\/?p=19585"},"modified":"2026-03-02T10:04:44","modified_gmt":"2026-03-02T15:04:44","slug":"setup-ga4-for-wordpress","status":"publish","type":"post","link":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/","title":{"rendered":"Como configurar o Google Analytics GA4 para WordPress - M\u00e9todos gratuitos e pagos"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p class=\"wp-block-paragraph\"><strong><em>If you&rsquo;ve been wondering how to set up the new Google Analytics version, GA4 for WordPress on your online business website, you&rsquo;re in the right place. In this comprehensive guide, MemberPress Growth Manager Curt Noble shows you how to get it done fast, painless, and even for <\/em>free<em>. <\/em><\/strong><\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6ab595866dcbb\" class=\"ez-toc-cssicon-toggle-label\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">WHAT&#039;S INSIDE<\/p>\n<span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6ab595866dcbb\"  \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Every_Website_Has_Different_GA4_Tracking_Needs\" >Every Website Has Different GA4 Tracking Needs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#MemberPress_is_the_Best_Membership_Plugin_When_it_Comes_to_GA4_Reporting\" >MemberPress is the Best Membership Plugin When it Comes to GA4 Reporting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#How_to_Set_Up_Google_Analytics_GA4_on_Your_WordPress_Membership_Site\" >How to Set Up Google Analytics GA4 on Your WordPress Membership Site<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Set_Up_a_Google_Analytics_Account\" >Set Up a Google Analytics Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Create_a_New_GA4_Property\" >Create a New GA4 Property<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Step_One_is_Complete\" >Step One is Complete!<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Adding_GA4_to_Any_WordPress_Site\" >Adding GA4 to Any WordPress Site<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#METHOD_1_Add_GA4_to_WordPress_free_with_Google_Site_Kit_plugin\" >METHOD #1 Add GA4 to WordPress free with Google Site Kit plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#METHOD_2_Add_GA4_to_WordPress_membership_site_with_Google_Tag_Manager_for_free_kind_of\" >METHOD #2 Add GA4 to WordPress membership site with Google Tag Manager for free (kind of)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#The_Most_Budget-Friendly_Ways_to_Setup_GA4_for_WordPress_Membership_Sites_Online_Businesses\" >The Most Budget-Friendly Ways to Setup GA4 for WordPress Membership Sites &amp; Online Businesses<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#METHOD_3_The_%E2%80%9Calmost_free%E2%80%9D_way_to_add_GA4_to_WordPress_with_WPCode_Pro\" >METHOD #3 The &ldquo;almost free&rdquo; way to add GA4 to WordPress with WPCode Pro<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#METHOD_4_The_best_way_to_add_complete_GA4_tracking_to_WordPress_Membership_Sites_with_MonsterInsights\" >METHOD #4 The best way to add complete GA4 tracking to WordPress Membership Sites with MonsterInsights<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Viewing_Your_Data_in_Google_Analytics\" >Viewing Your Data in Google Analytics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p class=\"wp-block-paragraph\">This is not your average GA4 blog post or guide. I&rsquo;m not going to spend a lot of time explaining what GA4 is and why it sucks. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I just want to show you how to set up GA4, and give you the information you need to do it, as quickly as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enough has been written about migrating from the previous version of Google Analytics, Universal Analytics (UA) to GA4. So, for this post, I&rsquo;ll be showing you how to do a <strong>fresh install of GA4<\/strong> on your online business site. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, if you&rsquo;re just getting started with WordPress and need to track your site visitors and performance metrics, <strong><em>bookmark this post<\/em><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM.jpg\" alt=\"click save button\" class=\"wp-image-57706\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM.jpg 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-300x150.jpg 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-768x384.jpg 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-340x170.jpg 340w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-840x420.jpg 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-700x350.jpg 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/finger-pressing-a-save-button_s1024x1024wisk20ceIhcTCfTcAX_EHRpMITRhktdORXYQtDqwYFKxizjbkM-156x78.jpg 156w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Every_Website_Has_Different_GA4_Tracking_Needs\"><\/span>Every Website Has Different GA4 Tracking Needs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every website has unique data tracking needs. And it&rsquo;s unreasonable to cover every single GA4 tracking scenario. So, I&rsquo;m going to stick to the basics, as much as possible. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That means, if you want to know how many tacos your customers have eaten just prior to signing up for your Taco Tuesday Premium Recipe Membership&hellip; you&rsquo;re in the wrong place.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Probably not going to outline that data tracking solution here. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But stick around, because you&rsquo;ll need to start here anyway. The first step is to <strong>set up your GA4 account<\/strong> with Google and configure your data stream. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sounds fun, right? <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MemberPress_is_the_Best_Membership_Plugin_When_it_Comes_to_GA4_Reporting\"><\/span>MemberPress is the Best Membership Plugin When it Comes to GA4 Reporting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-1024x576.jpg\" alt=\"Woman doing GA4 reporting\" class=\"wp-image-57709\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-1024x576.jpg 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-300x169.jpg 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-768x432.jpg 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-302x170.jpg 302w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-840x472.jpg 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-1216x684.jpg 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-700x394.jpg 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-156x88.jpg 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting-1080x607.jpg 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/woman-doing-analytics-reporting.jpg 1480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">All the methods shown in this guide work on any WordPress website. But let&rsquo;s face it. Some WordPress plugins and themes just work better with GA4. And this is the case with membership sites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The major advantage of MemberPress for integrating with GA4 is its flexibility, available hooks, and API access. It&rsquo;s the easiest Membership plugin to integrate with.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This means that all the major Google Analytics plugins have integrated with MemberPress. You&rsquo;ll see throughout this guide how these integrations make your life easier. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, I&rsquo;ll just come right out and say it. If you aren&rsquo;t using MemberPress, you&rsquo;re probably going to need a Google Analytics specialist to completely setup GA4 on your WordPress membership site.<\/p>\n\n\n\n<div class=\"full-width-cta blue image-left\">\n\t<div class=\"full-width-cta-container\">\n\t\t<div class=\"full-width-cta__image\">\n\t\t\t<img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/themes\/memberpress-theme\/images\/Girl1.webp\" alt=\"cta character\" loading=\"lazy\" width=\"379\" height=\"432\" srcset=\"https:\/\/memberpress.com\/wp-content\/themes\/memberpress-theme\/images\/transparent.gif 1w, https:\/\/memberpress.com\/wp-content\/themes\/memberpress-theme\/images\/Girl1-mobile.webp 449w, https:\/\/memberpress.com\/wp-content\/themes\/memberpress-theme\/images\/Girl1.webp 379w\" sizes=\"auto, (max-width: 767px) 1px, (max-width: 1023px) 449px, 379px\">\n\t\t<\/div>\n\t\t<div class=\"full-width-cta__text\">\n\t\t\t<h3>Get MemberPress Today!<\/h3>\n\t\t\t<div><p>Start getting paid for the content you create.<\/p>\n<\/div>\n\t\t\t<div class=\"pricing-cta\">\n\t\t\t\t<a href=\"https:\/\/memberpress.com\/pt\/plans\/pricing\/\" class=\"cta-button\">\n\t\t\t\t\tGet MemberPress Now\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/themes\/memberpress-theme\/images\/long-arrow-right-white.svg\" class=\"arrow-red\" alt=\"arrow\" width=\"20\" height=\"14\">\n\t\t\t\t<\/a>\n\t\t\t\t<a href=\"https:\/\/memberpress.com\/pt\/features\">See All Features<\/a>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Set_Up_Google_Analytics_GA4_on_Your_WordPress_Membership_Site\"><\/span>How to Set Up Google Analytics GA4 on Your WordPress Membership Site<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-1024x576.jpg\" alt=\"Follow these steps for how to set up GA4 on WordPress \" class=\"wp-image-57722\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-1024x576.jpg 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-300x169.jpg 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-768x432.jpg 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-302x170.jpg 302w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-840x472.jpg 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-1216x684.jpg 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-700x394.jpg 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-156x88.jpg 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up-1080x607.jpg 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/follow-steps-ga4-set-up.jpg 1480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This guide covers four different methods for <strong>how to set up GA4 on WordPress <\/strong>for your membership site or online business. These methods range anywhere from <em>easy <\/em>to <em>free<\/em>, with the <em>easy <\/em>method requiring a small additional cost.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&rsquo;re here looking for the best and easiest way to add complete Google Analytics GA4 tracking, I&rsquo;ll give you a spoiler. <strong>The best way to add GA4 to WordPress is with MonsterInsights. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to learn why that is, continue reading. If you just want to go with the best method, <strong>skip to the MonsterInsights<\/strong> section (Method 4 in this post).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&rsquo;m confident that one of these four methods will work for your situation. All four have the same first step. And you&rsquo;ll need to start there before doing anything else.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Set_Up_a_Google_Analytics_Account\"><\/span>Set Up a Google Analytics Account<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you&rsquo;re not already signed up for any Google services (like Gmail or Google Drive), or you&rsquo;d like to use a separate account for Google Analytics, you&rsquo;ll first need to create a Google account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So if you need to <strong>create an account<\/strong>, you can <a href=\"https:\/\/marketingplatform.google.com\/about\/analytics\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">sign up for one on the Google Analytics webpage<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Create_a_New_GA4_Property\"><\/span>Create a New GA4 Property<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After registering for your Google Analytics account and logging in, you&rsquo;ll need to <strong>create your GA4 property<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since one Google Analytics account can be used to monitor and analyze multiple websites, you can create multiple properties here to keep the data separate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While <a href=\"https:\/\/analytics.google.com\/analytics\/web\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">logged into Google Analytics<\/a>, click on the Admin item in the bottom left-hand corner. Then click the button to <em>Create Property<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"676\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-1024x676.png\" alt=\"Create Property in Google Analytics.\" class=\"wp-image-57569\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-1024x676.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-300x198.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-768x507.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-258x170.png 258w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-840x554.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-1037x684.png 1037w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-700x462.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-156x103.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation-1080x712.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-property-creation.png 1390w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the Create Property screen, you&rsquo;ll just need to enter a bit of <strong>basic info<\/strong> about your website. Under the Business Objectives options you can select multiple objectives. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These settings determine which reports you&rsquo;ll see out-of-the-box in GA4. Don&rsquo;t worry though. You can always <strong>customize your GA4 reports in the interface later<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-1024x611.png\" alt=\"Add property details in Google Analytics.\" class=\"wp-image-57570\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-1024x611.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-300x179.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-768x458.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-285x170.png 285w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-840x501.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-1146x684.png 1146w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-700x418.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-156x93.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings-1080x645.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-Property-Settings.png 1528w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you get to the Data Collection options, choose <em>Web <\/em>from the list. This is where you&rsquo;ll configure your GA4 Data Stream. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Data Stream is where GA4 collects all the events that happen on your website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter your website URL and give your data stream a name. I recommend including &ldquo;GA4&rdquo; in the stream name. This will help you easily identify it as the GA4 data stream later on in this guide.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring GA4 Events to Collect on WordPress<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 collects what are called <strong>default events<\/strong>. And you can choose which of these events are important to you. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I recommend selecting the <em>Enhanced Measurement<\/em> option. Doing so tells GA4 to collect a few more standard events, like scroll depth, outbound clicks, site search, and more.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you click the gear icon to the right you can pick and choose which events to track. Your best bet is to leave them all checked. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you might notice a glaring omission here &ndash; there&rsquo;s no <em>purchase<\/em> event available! Weird, right? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More on that later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"583\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-1024x583.png\" alt=\"Set up data stream in Google Analytics.\" class=\"wp-image-57571\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-1024x583.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-300x171.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-768x437.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-299x170.png 299w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-840x478.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-1202x684.png 1202w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-700x398.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-156x89.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection-1080x615.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-data-collection.png 1516w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_One_is_Complete\"><\/span>Step One is Complete!<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">That wasn&rsquo;t so hard was it? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, now you have a <strong>fully functioning GA4 web property<\/strong> and data stream. But it&rsquo;s just sitting there waiting for data to flow (kind of like my kid sitting at the table with a bowl waiting for someone to pour the Cap&rsquo;n Crunch).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next let&rsquo;s look at four different ways to get cereal into the bowl. Errr&hellip; I mean <strong>get the GA4 events into the data stream<\/strong>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Adding_GA4_to_Any_WordPress_Site\"><\/span>Adding GA4 to Any WordPress Site<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You&rsquo;ve got your GA4 data stream configured and ready to receive website events. Now you just need to <strong>add some code to WordPress<\/strong> to send data into the stream.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I mentioned earlier that there are a number of ways to do this. And you&rsquo;ll have to determine which is the best method for you based on your situation. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are a few things to think about when figuring out the <strong>best way to add GA4 to your WordPress site<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>How comfortable are you analyzing data within the GA4 reporting interface?<\/li>\n\n\n\n<li>Do you sell memberships, courses, or downloads on your website?<\/li>\n\n\n\n<li>Are you familiar with Google Tag Manager?<\/li>\n\n\n\n<li>Do you also have paid ads or social traffic you need to track?<\/li>\n\n\n\n<li>Do you have affiliate links you want to promote?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">There are probably more things to think about here. But this is a good list to start with. Under each of the four methods below, I&rsquo;ll also include scenarios showing when each method might be appropriate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So let&rsquo;s get to it!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"METHOD_1_Add_GA4_to_WordPress_free_with_Google_Site_Kit_plugin\"><\/span>METHOD #1: Add GA4 to WordPress <em>free <\/em>with Google Site Kit plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This method is <strong>completely free.<\/strong> But it may not be the best solution for your WordPress website. This solution works for WordPress membership sites that <strong>aren&rsquo;t selling anything<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reason is Google Site Kit has a major limitation when it comes to ecommerce tracking &ndash; that is, <em>it doesn&rsquo;t have it<\/em>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And it can only configure Google tools and solutions. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think you might want to track affiliate links or traffic from social networks like Facebook or Twitter (X) sometime in the future? You&rsquo;ll want to skip this free method. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you decide to scale, this method will leave you too limited. That being said, here are the steps.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Google Site Kit Plugin<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1700\" height=\"524\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New.png\" alt=\"Install Google Site Kit plugin.\" class=\"wp-image-19589\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New.png 1700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-300x92.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-1024x316.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-768x237.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-1536x473.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-552x170.png 552w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-840x259.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-1216x375.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-700x216.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-156x48.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2019\/10\/Google-Analytics-Add-New-1080x333.png 1080w\" sizes=\"(max-width: 1700px) 100vw, 1700px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">From the Add Plugins page, just search for the keywords <em>Site Kit by Google<\/em>. Then install and activate the plugin.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-1024x476.png\" alt=\"Add plugins in WordPress.\" class=\"wp-image-57572\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-1024x476.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-300x139.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-768x357.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-366x170.png 366w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-840x390.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-1216x565.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-700x325.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-156x72.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install-1080x502.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-plugin-install.png 1421w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the plugin is activated, you can begin the setup process. The first step requires you to connect to the same Google account you used to create the GA4 property earlier. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Connect Your GA4 Data Stream to WordPress with Google Site Kit<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">I mentioned earlier that you can use Site Kit to connect to other Google tools and services. However, this is optional. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Right now, let&rsquo;s just connect Google Analytics by selecting it from the list to begin setup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"608\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-1024x608.png\" alt=\"Google Site Kit installation screen.\" class=\"wp-image-57573\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-1024x608.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-300x178.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-768x456.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-286x170.png 286w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-840x499.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-1151x684.png 1151w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-700x416.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-156x93.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics-1080x642.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-site-kit-analytics.png 1385w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next you&rsquo;ll need to select your account, property, and data stream. Be sure you select the GA4 data stream you&rsquo;ve already created. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Or you could allow Google Site Kit to <strong>create a GA4 data stream<\/strong> for you if you don&rsquo;t already have one. But the options are limited. This is why I recommend configuring the data stream separately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Be sure to enable the option to <strong><em>Place Google Analytics 4 Code<\/em><\/strong> here. This is how GA4 will collect analytics events on your WordPress site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-1024x426.png\" alt=\"Google Site Kit connect service.\" class=\"wp-image-57574\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-1024x426.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-300x125.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-768x320.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-408x170.png 408w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-840x350.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-1216x506.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-700x291.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-156x65.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect-1080x450.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-site-kit-connect.png 1391w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And that&rsquo;s it. Google Analytics 4 is now installed on your WordPress website. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Be aware there&rsquo;s a slight delay in data collection. So, you won&rsquo;t see any data in your GA4 reports for <strong>several hours<\/strong>. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Validate that GA4 Data is Flowing<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You can check to make sure your data is flowing by viewing the Real Time report in GA4. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate back to your Google Analytics account, and select <em>Reports <\/em>on the left navigation menu. Then click <em>Real Time<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&rsquo;t see any data here, it&rsquo;s possible that no one is currently browsing your website. That&rsquo;s okay. Just go to your website in another browser tab. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shortly you should see that user session appear in the real time reports.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"523\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-1024x523.png\" alt=\"\" class=\"wp-image-57575\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-1024x523.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-300x153.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-768x393.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-1536x785.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-333x170.png 333w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-840x429.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-1216x621.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-700x358.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-156x80.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report-1080x552.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/GA4-real-time-report.png 1577w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"METHOD_2_Add_GA4_to_WordPress_membership_site_with_Google_Tag_Manager_for_free_kind_of\"><\/span>METHOD #2: Add GA4 to WordPress membership site with Google Tag Manager for free (kind of)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This next method for <strong>how to add GA4 to WordPress<\/strong> uses the free Google Tag Manager (GTM) solution. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While GTM is free, it may require an <strong>analytics specialist<\/strong> to complete a full setup. So this method works well for people who have previous experience with GTM. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM allows you to configure your own custom events. And with GA4, you&rsquo;ll need to configure a lot of events in Tag Manager. So, buckle up. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To implement <strong>ecommerce tracking with GTM<\/strong> on a WordPress membership site, you&rsquo;ll probably need some additional coding. Specifically, you&rsquo;ll need a script that pushes your transaction data into the Google Analytics data layer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Understanding the Data Layer<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The data layer<\/strong> is a central concept when working with GTM and Google Analytics (GA4). It acts as a bridge between your website and GTM. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And it allows you to send custom data to GA4, Google Ads, and other third-party services.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main purpose of the data layer is to <strong>separate the data from the presentation layer (your content). <\/strong>So, instead of hardcoding data directly into tags or scripts on your website, you can push the data into the data layer. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From there, GTM can read the data and use it to populate tags, triggers, and variables.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How a Data Layer Makes Your Life Easy<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Flexibility <\/strong>&ndash; You can easily add, modify, or remove data without changing the website&rsquo;s code. This is especially useful for marketers who might not have direct access to a site&rsquo;s source code.<\/li>\n\n\n\n<li><strong>Consistency<\/strong> &ndash; By centralizing data in one place, you ensure consistent data collection across different tools and platforms.<\/li>\n\n\n\n<li><strong>Enhanced Tracking<\/strong> &ndash; The data layer allows for more advanced tracking scenarios, such as capturing data from dynamic web pages or single-page applications.<\/li>\n\n\n\n<li><strong>Security<\/strong> &ndash; By controlling what data goes into the data layer and how that data is accessed, you can ensure that sensitive information isn&rsquo;t inadvertently sent to third-party tools.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&rsquo;ve got the concept of the data layer, <strong>let&rsquo;s get GTM installed!<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install a Google Tag Manager Plugin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">There are a number of plugins that add GTM to your WordPress site. Since there is a <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/13361271?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">standard GTM implementation<\/a>, most of them do the same thing. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As it turns out, the <strong>Site Kit by Google plugin<\/strong> can also install a GTM container for you! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Scroll up to METHOD #1 to see how to <strong>install the Google Site Kit plugin<\/strong>. Then just choose the options to add Google Tag Manager. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring the GA4 Tag in Google Tag Manager<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">With GTM installed and configured, you&rsquo;re ready to <strong>deploy your first tag!<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Quick note here: Google recently migrated the old <strong>GA4 Configuration Tag<\/strong> to the global Google Tag. So, if you&rsquo;ve seen other tutorials mentioning a GA4 Configuration tag in GTM, <strong>it&rsquo;s not there anymore<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you <strong>login to your GTM workspace<\/strong>, click to add a new tag. Then give the tag a name in the upper left.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I suggest using something like &ldquo;Google Tag for GA4&rdquo;. This will help you remember the tag is controlling your GA4 implementation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, click into the <strong>Tag Configuration area<\/strong> to add a new tag type. You&rsquo;ll see an option for Google Analytics. And on the next screen you&rsquo;ll see several Google Analytics options. Be sure to select <strong>Google Tag<\/strong> here. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-1024x453.png\" alt=\"Google Analytics Tag Configuration Area.\" class=\"wp-image-57589\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-1024x453.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-300x133.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-768x340.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-384x170.png 384w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-840x372.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-1216x538.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-700x310.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-156x69.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config-1080x478.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/google-tag-in-gtm-config.png 1528w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You&rsquo;ll configure GA4 events later. First we need to get the Google Analytics code firing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you&rsquo;ve <strong>added the correct Google Tag<\/strong>, you&rsquo;ll need to enter your <strong>Google Analytics Measurement ID.<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The tag ID is how Google knows where to send data collected on your website. Here is how you can <a href=\"https:\/\/support.google.com\/analytics\/answer\/12270356?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">find your GA4 Measurement ID<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need to tell Google Tag Manager where you want this tag to appear on your WordPress site. The GTM container is on every page of your site. So, here you can choose to load the GA4 tag on every page as well. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the Triggering panel, choose the option for <strong>Initialization &ndash; All Pages<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"448\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-1024x448.png\" alt=\"Google tag for GA4 screenshot\" class=\"wp-image-57590\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-1024x448.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-300x131.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-768x336.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-1536x671.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-389x170.png 389w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-840x367.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-1216x532.png 1216w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-700x306.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-156x68.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger-1080x472.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/gtm-google-tag-trigger.png 1542w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Publishing Your GA4 Tag to Your WordPress Membership Site<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The only thing left to do now is to <strong>save your tag configuration and publish the changes to your container.<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&rsquo;ll see a <strong>Submit <\/strong>button in the upper righthand corner of your GTM Workspace. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now GA4 is collecting the default event data on your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All the code is in place to push default event data into your data layer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And the events you configured earlier in the GA4 data stream options are being tracked. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, there&rsquo;s still <strong>no ecommerce tracking in place. <\/strong>So let&rsquo;s take care of that&hellip;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How to Track Your Membership Sales Revenue in GA4<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Remember all that talk about the data layer above? In order to track membership sales revenue or other ecommerce data, you need to push that data into your data layer. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This involves a bit of extra coding. And you&rsquo;ll want to <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/ecommerce?client_type=gtm\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">reference the Google Documentation<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>There are two components to this setup.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>First<\/strong>, you&rsquo;ll need to push the transaction details to your data layer after a successful sale. Here&rsquo;s what a sample from the Google documentation of what this would look like for a typical ecommerce transaction:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n  'event': 'purchase',\n  'currency': 'USD', \/\/ use your currency\n  'value': 100.00, \/\/ total transaction value\n  'transaction_id': 'T12345', \/\/ unique transaction ID\n  'items': [\n    \/\/ array of purchased item objects\n    {\n      'item_id': 'SKU12345',\n      'item_name': 'Product Name',\n      'price': 50.00,\n      'quantity': 2\n    }\n    \/\/ ... other purchased items\n  ]\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">However, the MemberPress membership transaction data will look slightly different than this since the value for &lsquo;item_name&rsquo; will be the name of your membership. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&rsquo;s a MemberPress-specific PHP code snippet that will populate your data layer with the correct information:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/**\n * GA4 Enhanced Ecommerce Tracking for MemberPress\n * Fires on thank you page after successful transaction\n *\/\nfunction echo_ga4_tracking_script() {\n    \/\/ Check if membership parameter exists\n    if (!isset($_GET['membership'])) {\n        return;\n    }\n    \n    \/\/ Get transaction based on available parameters\n    $txn = null;\n    if (isset($_GET['trans_num']) &amp;&amp; !empty($_GET['trans_num'])) {\n        $txn = MeprTransaction::get_one_by_trans_num($_GET['trans_num']);\n    } elseif (isset($_GET['transaction_id']) &amp;&amp; !empty($_GET['transaction_id'])) {\n        $txn = MeprTransaction::get_one($_GET['transaction_id']);\n    }\n    \n    \/\/ Validate transaction\n    if (!$txn || !isset($txn-&gt;id) || $txn-&gt;id &lt;= 0) {\n        return;\n    }\n    \n    \/\/ Get transaction details\n    $total = $txn-&gt;total;\n    $tax_amount = $txn-&gt;tax_amount;\n    $product = $txn-&gt;product();\n    $user = $txn-&gt;user();\n    \n    \/\/ Prepare item data\n    $item_name = isset($product-&gt;post_title) ? $product-&gt;post_title : urldecode($_GET['membership']);\n    $item_id = isset($product-&gt;ID) ? $product-&gt;ID : $txn-&gt;product_id;\n    \n    ?&gt;\n    &lt;!-- GA4 Enhanced Ecommerce Purchase Event --&gt;\n    &lt;script&gt;\n    (function() {\n        \/\/ Ensure dataLayer exists\n        window.dataLayer = window.dataLayer || [];\n        \n        \/\/ Push GA4 purchase event with enhanced ecommerce parameters\n        window.dataLayer.push({\n            event: 'purchase',\n            ecommerce: {\n                transaction_id: '&lt;?php echo esc_js($txn-&gt;trans_num); ?&gt;',\n                value: &lt;?php echo floatval($total); ?&gt;,\n                tax: &lt;?php echo floatval($tax_amount); ?&gt;,\n                currency: 'USD',\n                shipping: 0,\n                items: [{\n                    item_id: '&lt;?php echo esc_js($item_id); ?&gt;',\n                    item_name: '&lt;?php echo esc_js($item_name); ?&gt;',\n                    affiliation: '&lt;?php echo esc_js(get_bloginfo('name')); ?&gt;',\n                    currency: 'USD',\n                    discount: 0,\n                    index: 0,\n                    item_category: 'Membership',\n                    item_category2: '&lt;?php echo esc_js($product-&gt;post_type); ?&gt;',\n                    price: &lt;?php echo floatval($total); ?&gt;,\n                    quantity: 1\n                }],\n                \/\/ Additional user data (optional)\n                user_data: {\n                    email_address: '&lt;?php echo esc_js($user-&gt;user_email); ?&gt;',\n                    user_id: '&lt;?php echo esc_js($user-&gt;ID); ?&gt;'\n                }\n            }\n        });\n        \n        \/\/ Optional: Log to console in development\n        &lt;?php if (defined('WP_DEBUG') &amp;&amp; WP_DEBUG): ?&gt;\n        console.log('GA4 Purchase Event Fired:', {\n            transaction_id: '&lt;?php echo esc_js($txn-&gt;trans_num); ?&gt;',\n            value: &lt;?php echo floatval($total); ?&gt;,\n            item_name: '&lt;?php echo esc_js($item_name); ?&gt;'\n        });\n        &lt;?php endif; ?&gt;\n    })();\n    &lt;\/script&gt;\n    &lt;?php\n}\n\n\/\/ Hook to wp_footer instead of wp_head\nadd_action('wp_footer', 'echo_ga4_tracking_script', 100);\n\n\/**\n * Optional: Add GA4 configuration script to head if not already present\n * Replace GA_MEASUREMENT_ID with your actual GA4 measurement ID\n *\/\nfunction add_ga4_config_script() {\n    ?&gt;\n    &lt;!-- Google Analytics 4 --&gt;\n    &lt;script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=GA_MEASUREMENT_ID\"&gt;&lt;\/script&gt;\n    &lt;script&gt;\n        window.dataLayer = window.dataLayer || [];\n        function gtag(){dataLayer.push(arguments);}\n        gtag('js', new Date());\n        gtag('config', 'GA_MEASUREMENT_ID', {\n            'send_page_view': true,\n            'enhanced_measurement': true\n        });\n    &lt;\/script&gt;\n    &lt;?php\n}\n\/\/ Uncomment the line below if you need to add the GA4 configuration script\n\/\/ add_action('wp_head', 'add_ga4_config_script', 1);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">There are a number of ways to <a href=\"https:\/\/memberpress.com\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\" title=\"How to add custom code snippets in WPCode\">add a custom code snippet to your WordPress site<\/a>. We recommend the free version of WPCode to add code snippets. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Second<\/strong>, you&rsquo;ll need to configure an event tag in GTM to collect and send the transaction data to GA4 reports. The tag setup in GTM look like this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a new tag with the tag type &lsquo;GA4 Event&rsquo;.<\/li>\n\n\n\n<li>For the event name, enter &ldquo;purchase&rdquo;.<\/li>\n\n\n\n<li>Map the event parameters like before:\n<ul class=\"wp-block-list\">\n<li><code>currency<\/code> to {{currency}} Data Layer Variable<\/li>\n\n\n\n<li><code>value<\/code> to {{value}} Data Layer Variable<\/li>\n\n\n\n<li><code>transaction_id<\/code> to {{transaction_id}} Data Layer Variable<\/li>\n\n\n\n<li><code>items<\/code> to {{items}} Data Layer Variable<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set a trigger for this tag to fire on the order confirmation page or after a successful transaction.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Isn&rsquo;t There an Easier Way?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Using GTM to add GA4 tracking to a WordPress site can be quite an undertaking. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The approach I&rsquo;ve outlined above would get you the basic analytics tracking and ecommerce revenue reporting. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But consider that you&rsquo;d need to go and configure every other data point that you&rsquo;d need to track. And then consider the risk of what can happen when Google &ldquo;flips the script&rdquo; on you. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the migration from GA3 (Universal Analytics) to GA4 created <a href=\"https:\/\/www.searchenginejournal.com\/google-analytics-4-backlash\/411392\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">quite a shakeup<\/a> for site owners and marketers. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&rsquo;re managing the complete tracking strategy with GTM, then you&rsquo;ve got to pay very close attention to changes. In many companies, this is a full time position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, is there an easier way? The answer is yes. There are actually two better ways to do all this using premium plugins. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Most_Budget-Friendly_Ways_to_Setup_GA4_for_WordPress_Membership_Sites_Online_Businesses\"><\/span>The Most Budget-Friendly Ways to Setup GA4 for WordPress Membership Sites &amp; Online Businesses<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Phew! We made it through the hard part. If you&rsquo;ve read through the previous two options for setting up GA4 on WordPress, you might be thinking this is above your pay grade. I assure you, it&rsquo;s not. These next two options are &ldquo;stupid-easy&rdquo;. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&rsquo;ve spent over 10 years working with web analytics systems. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&rsquo;ve worked on implementations ranging from free Google Analytics Legacy versions, to enterprise solutions like Web Trends and Omniture SiteCatalyst (both before and after the Adobe acquisition).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And I&rsquo;ve even worked with customer data platform solutions like Tealium to deploy analytics code. I was working with data layers before they were cool. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, you can trust me when I say, the following two plugins are the <strong>best way to implement GA4 on WordPress. <\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"METHOD_3_The_%E2%80%9Calmost_free%E2%80%9D_way_to_add_GA4_to_WordPress_with_WPCode_Pro\"><\/span>METHOD #3: The &ldquo;almost free&rdquo; way to add GA4 to WordPress with WPCode Pro<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When I was in college we had this discount card called the &ldquo;Starving Student Card.&rdquo; The card gave me sweet discounts on Big Juan Burritos at Taco Time. And I think there were other discounts too. But that&rsquo;s not important.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Point is, I should call this the &ldquo;Starving Student&rdquo; method to <strong>add GA4 to your membership site<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&rsquo;s totally budget-friendly, even for a college student on a limited budget. Here&rsquo;s what you do:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Sign Up For and Install WPCode Pro<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"709\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-1024x709.png\" alt=\"WPCode homepage screenshot\" class=\"wp-image-57622\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-1024x709.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-300x208.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-768x531.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-246x170.png 246w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-840x581.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-989x684.png 989w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-700x484.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-156x108.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin-1080x747.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-pro-wp-plugin.png 1373w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There&rsquo;s a free version as well, called <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\" target=\"_blank\" rel=\"noopener\" title=\"\">WPCode Lite<\/a>. But since you&rsquo;re implementing GA4 on a membership site, you&rsquo;ll need some key features only available in the Plus, Pro, or Elite plans. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Specifically, you&rsquo;ll need the <strong>Conversion Pixels<\/strong> and <strong>1-Click eCommerce Tracking <\/strong>features. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And bonus! You&rsquo;ll also be able to use WPCode Pro to add your social media tracking pixels. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are millions of WordPress websites using WPCode. And at 4.9 stars, it&rsquo;s quite possibly the highest rated plugin out there. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"682\" height=\"384\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-plugin-rating-4-9.png\" alt=\"WPCode customer rating screenshot\" class=\"wp-image-57623\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-plugin-rating-4-9.png 682w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-plugin-rating-4-9-300x169.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-plugin-rating-4-9-302x170.png 302w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wpcode-plugin-rating-4-9-156x88.png 156w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So, as a first step, go <a href=\"https:\/\/memberpress.com\/go\/wpcode\" target=\"_blank\" rel=\"noopener nofollow sponsored\" title=\"\">sign up for WPCode Pro<\/a>. (The WPCode Plus Plan will give you everything you need for GA4.) <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, follow the instructions to install and activate the plugin on your WordPress website. <strong>WPCode Pro is integrated with MemberPress<\/strong>, and will auto-detect your MemberPress plugin. This is a major time saver. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring WPCode Pro to Implement GA4 on Your WordPress Membership Site<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You won&rsquo;t need to add any additional scripts or code. WPCode Pro will set up and push ecommerce data to the data layer. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And you won&rsquo;t need to configure anything in Google Tag Manager. In fact, WPCode completely eliminates the need to use Google Tag Manager on your WordPress site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The only thing you need to do is tell WPCode Pro your <strong>GA4 measurement ID<\/strong> (in the blurred-out field below). The plugin handles the rest. Be sure to select which conversion events you want to track. I recommend tracking all the available events.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"753\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-1024x753.png\" alt=\"GA4 set up in WPCode\" class=\"wp-image-57626\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-1024x753.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-300x221.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-768x565.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-231x170.png 231w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-835x614.png 835w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-930x684.png 930w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-1401x1030.png 1401w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-700x515.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-156x115.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings-1080x794.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/wp-code-ga4-settings.png 1409w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And that&rsquo;s it. You&rsquo;re done adding GA4 to your membership site. All your membership signups are being tracked, and the data is being sent to your GA4 reports. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the end of this post, I&rsquo;ll show you where to find your membership conversion data in GA4 reports. But first, I&rsquo;ve got one more stupid-easy solution for you!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"METHOD_4_The_best_way_to_add_complete_GA4_tracking_to_WordPress_Membership_Sites_with_MonsterInsights\"><\/span>METHOD #4: The best way to add complete GA4 tracking to WordPress Membership Sites with MonsterInsights<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One caveat to using WPCode (above) is that it sends all the data to your GA4 account. So, to see your data, you need to login to your GA4 account and find your way around that user interface. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And initial reports are in. The new GA4 user interface is, well&hellip; <a href=\"https:\/\/searchengineland.com\/google-analytics-4-we-hate-428942\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">garbage<\/a>, according to users. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is why MonsterInsights is my preferred solution for a full-scale, complete GA4 install. With MonsterInsights you&rsquo;ll be able to do the following, easily:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Full-scale GA4 tracking, including ecommerce<\/strong> &ndash; No FOMO over not tagging or tracking something you might think of later<br><\/li>\n\n\n\n<li><strong>See all your data right in your WordPress Admin<\/strong> &ndash; You won&rsquo;t need to fumble around the terrible GA4 user interface to find critical insights in your data<br><\/li>\n\n\n\n<li><strong>Outbound link tracking<\/strong> &ndash; You&rsquo;ll know how many people are actually clicking on the links you include in your blog posts<br><\/li>\n\n\n\n<li><strong>Affiliate link tracking<\/strong> &ndash; See which affiliate links are getting the most clicks<br><\/li>\n\n\n\n<li><strong>EU compliance built-in<\/strong> &ndash; Sleep easy at night without a fear of a major fine from the EU for violating data privacy laws<br><\/li>\n\n\n\n<li><strong>Logged-in user tracking<\/strong> &ndash; Analyze how your paid members are using your site differently than the general public<br><\/li>\n\n\n\n<li><strong>Author tracking<\/strong> &ndash; Report on each blog author&rsquo;s performance<br><\/li>\n\n\n\n<li><strong>Zero-Code Implementation<\/strong> &ndash; No extra costs to configure your tracking code and event setup<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">That&rsquo;s just a quick overview. There are so many features that make MonsterInsights an easy and affordable decision. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The zero-code aspect pays for itself instantly. You don&rsquo;t need an analytics engineer or specialist with MonsterInsights.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Sign Up and Install MonsterInsights Pro for Less Than a Chipotle Burrito Each Month<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To get the ecommerce reporting, you&rsquo;ll want to <a href=\"https:\/\/memberpress.com\/go\/mi\/pricing\" target=\"_blank\" rel=\"noopener sponsored\" title=\"\">sign up for the Pro license<\/a>. When you break down the cost, it&rsquo;s less than a Chipotle Burrito each month. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And the setup wizard makes the installation process quick and painless.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"672\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-1024x672.png\" alt=\"MonsterInsights setup wizard in WordPress\" class=\"wp-image-57627\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-1024x672.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-300x197.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-768x504.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-259x170.png 259w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-840x551.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-1042x684.png 1042w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-700x459.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-156x102.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard-1080x709.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-wizard.png 1434w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The wizard is thorough, and very intuitive. So, I won&rsquo;t cover every step here. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But there&rsquo;s a <a href=\"https:\/\/www.monsterinsights.com\/how-to-properly-setup-google-analytics-in-wordpress\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">detailed guide<\/a> for the complete setup process, if you need it. When you get to the addons step, make sure you <strong>install the MonsterInsights ecommerce addon<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"886\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-1024x886.png\" alt=\"MonsterInsights recommended addons screen \" class=\"wp-image-57628\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-1024x886.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-300x260.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-768x665.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-196x170.png 196w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-709x614.png 709w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-790x684.png 790w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-1190x1030.png 1190w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-598x518.png 598w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-156x135.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking-1080x935.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/monster-insights-pro-ecommerce-tracking.png 1212w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That&rsquo;s really all there is to the setup. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your WordPress Membership site should now be all setup with GA4 tracking. MonsterInsights has created your data layer and all the GA4 events you chose to track earlier during setup. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As I mentioned above, you don&rsquo;t even need to login to your GA4 account to see your data. MonsterInsights presents your data right in the admin area of WordPress.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Viewing Your GA4 Data in the WordPress Admin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To get to your GA4 data in MonsterInsights, you&rsquo;ll see a quick summary in the dashboard widget. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"718\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-1024x718.webp\" alt=\"MonsterInsights WordPress admin data screen\" class=\"wp-image-57629\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-1024x718.webp 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-300x210.webp 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-768x539.webp 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-242x170.webp 242w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-840x589.webp 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-975x684.webp 975w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-700x491.webp 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-156x109.webp 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png-1080x758.webp 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-dashboard-widget-1png.webp 1116w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And you&rsquo;ll see a full suite of reports by navigating to the <strong>Insights<\/strong> link in your left navigation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"632\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-1024x632.webp\" alt=\"\" class=\"wp-image-57630\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-1024x632.webp 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-300x185.webp 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-768x474.webp 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-275x170.webp 275w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-840x519.webp 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-1108x684.webp 1108w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-700x432.webp 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-156x96.webp 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png-1080x667.webp 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/mi-overview-new-1png.webp 1116w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Viewing_Your_Data_in_Google_Analytics\"><\/span>Viewing Your Data in Google Analytics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Of all these options, only MonsterInsights will display your analytics data directly inside WordPress. For the other options, you&rsquo;ll need to login to your Google Analytics account and navigate to your GA4 property. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"681\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1024x681.png\" alt=\"\" class=\"wp-image-57632\" srcset=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1024x681.png 1024w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-300x200.png 300w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-768x511.png 768w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1536x1022.png 1536w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-255x170.png 255w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-840x559.png 840w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1028x684.png 1028w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1548x1030.png 1548w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-700x466.png 700w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-156x104.png 156w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-1080x719.png 1080w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1-600x400.png 600w, https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/ga4-report-interface-1.png 1590w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This screenshot is the result of the sandbox environment I was playing around with in this guide. So, there&rsquo;s not a lot of data to show. If you&rsquo;d like to get into GA4 and poke around a bit, I recommend accessing the <a href=\"https:\/\/support.google.com\/analytics\/answer\/10993011?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">GA4 Test Account<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Congrats! You&rsquo;ve got Google Google Analytics set up on your WordPress membership site for your online business.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can start to get a better understanding of your audience, how they&rsquo;re interacting with your content, and how effective your site is at converting visitors into members.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&rsquo;d like to know more about Google Analytics, we&rsquo;ve published an article on <a href=\"https:\/\/memberpress.com\/how-to-use-google-analytics-to-optimize-your-membership-site\/\" target=\"_blank\" rel=\"noopener\" title=\"\">how to use the service to optimize your membership site<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There&rsquo;s also <a href=\"https:\/\/analytics.google.com\/analytics\/academy\/course\/6\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">a free course on the Google Analytics website<\/a> for those who really want to get the most out of this service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Do you have any questions about using Google Analytics with your membership site? If so please, leave a comment below. <\/em><\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Com tantas maneiras de instalar o rastreamento do GA4 em um site de associa\u00e7\u00e3o do WordPress, este guia abordar\u00e1 as quatro principais maneiras de lidar com o projeto. Voc\u00ea saber\u00e1 por que o m\u00e9todo \"gratuito\" pode n\u00e3o ser a implementa\u00e7\u00e3o mais barata do GA4. E aprender\u00e1 a maneira mais econ\u00f4mica de instalar o GA4 em um site de associa\u00e7\u00e3o.<\/p>","protected":false},"author":59227,"featured_media":73484,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"complete","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","_strive_post_notes":"","footnotes":""},"categories":[94,1560],"tags":[206,201,202],"class_list":["post-19585","post","type-post","status-publish","format-standard","has-post-thumbnail","category-marketing","category-seo","tag-analytics","tag-google-analytics","tag-optimization","entry"],"acf":{"plans":["scale"],"is_featured":false,"download_source":"none","mothership_slug":"","download_url":""},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Curt Noble\"\/>\n\t<meta name=\"keywords\" content=\"google analytics,,analytics,google analytics,optimization\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_BR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Setup Google Analytics - GA4 for WordPress Websites\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1480\" \/>\n\t\t<meta property=\"og:image:height\" content=\"832\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-09-21T13:57:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-03-02T15:04:44+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Setup Google Analytics - GA4 for WordPress Websites\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#blogposting\",\"name\":\"How to Setup Google Analytics - GA4 for WordPress Websites\",\"headline\":\"How to Set Up Google Analytics GA4 for WordPress \\u2013 Free &#038; Paid Methods\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/curtiscaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png\",\"width\":1480,\"height\":832,\"caption\":\"How to Set Up Google Analytics 4 for WordPress_MemberPress Blog\"},\"datePublished\":\"2023-09-21T09:57:06-04:00\",\"dateModified\":\"2026-03-02T10:04:44-05:00\",\"inLanguage\":\"pt-BR\",\"commentCount\":6,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#webpage\"},\"articleSection\":\"Marketing, SEO, analytics, google analytics, optimization\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/#listItem\",\"name\":\"Marketing\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/#listItem\",\"position\":2,\"name\":\"Marketing\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/seo\\\/#listItem\",\"name\":\"SEO\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/seo\\\/#listItem\",\"position\":3,\"name\":\"SEO\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/seo\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#listItem\",\"name\":\"How to Set Up Google Analytics GA4 for WordPress \\u2013 Free &#038; Paid Methods\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/#listItem\",\"name\":\"Marketing\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#listItem\",\"position\":4,\"name\":\"How to Set Up Google Analytics GA4 for WordPress \\u2013 Free &#038; Paid Methods\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/category\\\/marketing\\\/seo\\\/#listItem\",\"name\":\"SEO\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/curtiscaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/curtiscaseproof-com\\\/\",\"name\":\"Curt Noble\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#authorImage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/d10f9ee54efb4d6330987c0926139890.jpg?ver=1790046645\",\"width\":96,\"height\":96,\"caption\":\"Curt Noble\"},\"jobTitle\":\"Growth Manager\",\"alumniOf\":[{\"@type\":\"EducationalOrganization\",\"name\":\"Brigham Young University Idaho\",\"sameAs\":\"https:\\\/\\\/byui.edu\\\/\"}],\"knowsAbout\":[{\"@type\":\"Thing\",\"name\":\"SEO\"},{\"@type\":\"Thing\",\"name\":\"Marketing\"},{\"@type\":\"Thing\",\"name\":\"WordPress\",\"url\":\"https:\\\/\\\/wordpress.org\\\/\"},{\"@type\":\"Thing\",\"name\":\"LMS\"},{\"@type\":\"Thing\",\"name\":\"Entrepreneurship\"}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/\",\"name\":\"How to Setup Google Analytics - GA4 for WordPress Websites\",\"description\":\"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/curtiscaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/curtiscaseproof-com\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#mainImage\",\"width\":1480,\"height\":832,\"caption\":\"How to Set Up Google Analytics 4 for WordPress_MemberPress Blog\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/setup-ga4-for-wordpress\\\/#mainImage\"},\"datePublished\":\"2023-09-21T09:57:06-04:00\",\"dateModified\":\"2026-03-02T10:04:44-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>How to Setup Google Analytics - GA4 for WordPress Websites<\/title>\n\n","aioseo_head_json":{"title":"Como configurar o Google Analytics - GA4 para sites WordPress","description":"Aprenda a melhor maneira de instalar e configurar o GA4 Analytics em qualquer site WordPress gratuitamente. E conhe\u00e7a a maneira mais f\u00e1cil de implementar o GA4 em um site de associa\u00e7\u00e3o do WordPress.","canonical_url":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/","robots":"max-image-preview:large","keywords":"google analytics,,analytics,google analytics,optimization","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#blogposting","name":"How to Setup Google Analytics - GA4 for WordPress Websites","headline":"How to Set Up Google Analytics GA4 for WordPress \u2013 Free &#038; Paid Methods","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/curtiscaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png","width":1480,"height":832,"caption":"How to Set Up Google Analytics 4 for WordPress_MemberPress Blog"},"datePublished":"2023-09-21T09:57:06-04:00","dateModified":"2026-03-02T10:04:44-05:00","inLanguage":"pt-BR","commentCount":6,"mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#webpage"},"articleSection":"Marketing, SEO, analytics, google analytics, optimization"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/#listItem","name":"Marketing"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/#listItem","position":2,"name":"Marketing","item":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/#listItem","name":"SEO"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/#listItem","position":3,"name":"SEO","item":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#listItem","name":"How to Set Up Google Analytics GA4 for WordPress \u2013 Free &#038; Paid Methods"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/#listItem","name":"Marketing"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#listItem","position":4,"name":"How to Set Up Google Analytics GA4 for WordPress \u2013 Free &#038; Paid Methods","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/#listItem","name":"SEO"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/pt\/blog\/author\/curtiscaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/curtiscaseproof-com\/","name":"Curt Noble","image":{"@type":"ImageObject","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#authorImage","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/d10f9ee54efb4d6330987c0926139890.jpg?ver=1790046645","width":96,"height":96,"caption":"Curt Noble"},"jobTitle":"Growth Manager","alumniOf":[{"@type":"EducationalOrganization","name":"Brigham Young University Idaho","sameAs":"https:\/\/byui.edu\/"}],"knowsAbout":[{"@type":"Thing","name":"SEO"},{"@type":"Thing","name":"Marketing"},{"@type":"Thing","name":"WordPress","url":"https:\/\/wordpress.org\/"},{"@type":"Thing","name":"LMS"},{"@type":"Thing","name":"Entrepreneurship"}]},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#webpage","url":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/","name":"How to Setup Google Analytics - GA4 for WordPress Websites","description":"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/curtiscaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/curtiscaseproof-com\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png","@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#mainImage","width":1480,"height":832,"caption":"How to Set Up Google Analytics 4 for WordPress_MemberPress Blog"},"primaryImageOfPage":{"@id":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/#mainImage"},"datePublished":"2023-09-21T09:57:06-04:00","dateModified":"2026-03-02T10:04:44-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/pt\/#website","url":"https:\/\/memberpress.com\/pt\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"}}]},"og:locale":"pt_BR","og:site_name":"MemberPress","og:type":"article","og:title":"How to Setup Google Analytics - GA4 for WordPress Websites","og:description":"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.","og:url":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png","og:image:width":1480,"og:image:height":832,"article:published_time":"2023-09-21T13:57:06+00:00","article:modified_time":"2026-03-02T15:04:44+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"How to Setup Google Analytics - GA4 for WordPress Websites","twitter:description":"Learn the best way to setup and configure GA4 analytics on any WordPress website for free. And learn the easiest way to implement GA4 on a wp membership site.","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2023\/09\/How-to-Set-Up-Google-Analytics-4-for-WordPress_MemberPress-Blog.png"},"aioseo_meta_data":{"post_id":"19585","title":"Como configurar o Google Analytics - GA4 para sites WordPress","description":"Aprenda a melhor maneira de instalar e configurar o GA4 Analytics em qualquer site WordPress gratuitamente. E conhe\u00e7a a maneira mais f\u00e1cil de implementar o GA4 em um site de associa\u00e7\u00e3o do WordPress.","keywords":[{"label":"Google Analytics,","value":"Google Analytics,"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-08-29 15:49:14","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":"0","open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2020-12-21 16:17:48","updated":"2026-08-29 15:49:14","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/\" title=\"Marketing\">Marketing<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/\" title=\"SEO\">SEO<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Set Up Google Analytics GA4 for WordPress \u2013 Free &amp; Paid Methods\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt"},{"label":"Marketing","link":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/"},{"label":"SEO","link":"https:\/\/memberpress.com\/pt\/blog\/category\/marketing\/seo\/"},{"label":"How to Set Up Google Analytics GA4 for WordPress \u2013 Free &#038; Paid Methods","link":"https:\/\/memberpress.com\/pt\/blog\/setup-ga4-for-wordpress\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts\/19585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/59227"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=19585"}],"version-history":[{"count":3,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts\/19585\/revisions"}],"predecessor-version":[{"id":73477,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/posts\/19585\/revisions\/73477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media\/73484"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=19585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/categories?post=19585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/tags?post=19585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}