{"id":118,"date":"2024-01-29T20:46:04","date_gmt":"2024-01-29T20:46:04","guid":{"rendered":"https:\/\/davagordon.co.uk\/blog\/?p=118"},"modified":"2024-05-12T02:31:18","modified_gmt":"2024-05-12T01:31:18","slug":"maximizing-success-unleashing-the-power-of-ga4-through-a-pioneering-guide-to-dominating-recommended-events","status":"publish","type":"post","link":"https:\/\/davagordon.co.uk\/blog\/maximizing-success-unleashing-the-power-of-ga4-through-a-pioneering-guide-to-dominating-recommended-events\/","title":{"rendered":"Maximizing Success: Unleashing the Power of Google Analytics 4 through a Pioneering Guide to Dominating Recommended Events"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In the ever-evolving landscape of e-commerce, gaining insight into user behaviour is critical to achieving success. <a href=\"https:\/\/analytics.google.com\/\" target=\"_blank\" rel=\"noopener\" title=\"Google Analytics 4 (GA4)\">Google Analytics 4 (GA4)<\/a> offers a powerful solution for monitoring and evaluating user engagement with your website or application. Among its impressive capabilities, one stands out: the implementation of recommended events. These events enable you to capture important user actions, providing invaluable information on their journey and empowering you to make informed decisions based on data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Welcome to our blog post! Today, we will be diving into the world of GA4 and showing you the top suggested events. Plus, we&#8217;ll equip you with the proper code implementations so you can effortlessly track these events and see results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding Recommended GA4 Events:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before we delve into the code, it&#8217;s important to examine the extensive list of recommended events offered by Google Analytics 4 in great detail.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>add_payment_info:<\/strong><ul><li>Parameters: coupon, currency, items, payment_type, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>add_shipping_info<\/strong>:<ul><li>Parameters: coupon, currency, items, shipping_tier, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>add_to_cart<\/strong>:<ul><li>Parameters: currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>add_to_wishlist<\/strong>:<ul><li>Parameters: currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>begin_checkout<\/strong>:<ul><li>Parameters: coupon, currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>earn_virtual_currency<\/strong>:<ul><li>Parameters: virtual_currency_name, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>generate_lead<\/strong>:<ul><li>Parameters: value, currency.<\/li><\/ul><\/li>\n\n\n\n<li><strong>join_group<\/strong>:<ul><li>Parameters: group_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>level_end<\/strong>:<ul><li>Parameters: level_name, success.<\/li><\/ul><\/li>\n\n\n\n<li><strong>level_start<\/strong>:<ul><li>Parameters: level_name.<\/li><\/ul><\/li>\n\n\n\n<li><strong>level_up:<\/strong><ul><li>Parameters: character, level.<\/li><\/ul><\/li>\n\n\n\n<li><strong>login<\/strong>:<ul><li>Parameters: method.<\/li><\/ul><\/li>\n\n\n\n<li><strong>post_score<\/strong>:<ul><li>Parameters: level, character, score.<\/li><\/ul><\/li>\n\n\n\n<li><strong>purchase:<\/strong><ul><li> Parameters: affiliation, coupon, currency, items, transaction_id, shipping, tax, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>refund<\/strong>:<ul><li>Parameters: affiliation, coupon, currency, items, transaction_id, shipping, tax, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>remove_from_cart<\/strong>:<ul><li>Parameters: currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>search<\/strong>:<ul><li>Parameters: search_term.<\/li><\/ul><\/li>\n\n\n\n<li><strong>select_content<\/strong>:<ul><li>Parameters: content_type, item_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>select_item<\/strong>:<ul><li>Parameters: items, item_list_name, item_list_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>select_promotion<\/strong>:<ul><li>Parameters: items, promotion_id, promotion_name, creative_name, creative_slot, location_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>share<\/strong>:<ul><li>Parameters: content_type, item_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>sign_up<\/strong>:<ul><li>Parameters: method.<\/li><\/ul><\/li>\n\n\n\n<li><strong>spend_virtual_currency<\/strong>:<ul><li>Parameters: item_name, virtual_currency_name, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>tutorial_begin<\/strong>:<ul><li>No parameters.<\/li><\/ul><\/li>\n\n\n\n<li><strong>tutorial_complete:<\/strong><ul><li>No parameters.<\/li><\/ul><\/li>\n\n\n\n<li><strong>unlock_achievement<\/strong>:<ul><li>Parameters: achievement_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>view_cart<\/strong>:<ul><li>Parameters: currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>view_item<\/strong>:<ul><li>Parameters: currency, items, value.<\/li><\/ul><\/li>\n\n\n\n<li><strong>view_item_list<\/strong>:<ul><li>Parameters: items, item_list_name, item_list_id.<\/li><\/ul><\/li>\n\n\n\n<li><strong>view_promotion<\/strong>:<ul><li>Parameters: items, promotion_id, promotion_name, creative_name, creative_slot, location_id.<\/li><\/ul><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Code Implementation:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Alright, here are the code snippets you&#8217;ll need to put into action some of these recommended events. Keep in mind, it&#8217;s important to personalise the parameters to fit your unique situation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Add to Cart&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;add_to_cart&#039;, {\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Purchase&#8221; Event<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;purchase&#039;, {\n  &#039;affiliation&#039;: &#039;Online Store&#039;,\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;transaction_id&#039;: &#039;123456&#039;,\n  &#039;shipping&#039;: 5.00,\n  &#039;tax&#039;: 2.50,\n  &#039;value&#039;: 37.49,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Add Payment Info&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;add_payment_info&#039;, {\n  &#039;coupon&#039;: &#039;SUMMER20&#039;,\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;payment_type&#039;: &#039;Credit Card&#039;,\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Add Shipping Info&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;add_shipping_info&#039;, {\n  &#039;coupon&#039;: &#039;FREESHIP&#039;,\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;shipping_tier&#039;: &#039;Express&#039;,\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Add to Wishlist&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;add_to_wishlist&#039;, {\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product456&#039;,\n      &#039;name&#039;: &#039;Another Product&#039;,\n      &#039;category&#039;: &#039;Clothing&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 39.99,\n    },\n  ],\n  &#039;value&#039;: 39.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Begin Checkout&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;begin_checkout&#039;, {\n  &#039;coupon&#039;: &#039;CHECKOUT10&#039;,\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Earn Virtual Currency&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;earn_virtual_currency&#039;, {\n  &#039;virtual_currency_name&#039;: &#039;Coins&#039;,\n  &#039;value&#039;: 100,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Tracking &#8220;Generate Lead&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;generate_lead&#039;, {\n  &#039;value&#039;: 10,\n  &#039;currency&#039;: &#039;USD&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Join Group&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;join_group&#039;, {\n  &#039;group_id&#039;: &#039;community123&#039;,\n})\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Level End&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;level_end&#039;, {\n  &#039;level_name&#039;: &#039;Intermediate&#039;,\n  &#039;success&#039;: true,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Level Start&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;level_start&#039;, {\n  &#039;level_name&#039;: &#039;Beginner&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Level Up&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;level_up&#039;, {\n  &#039;character&#039;: &#039;Player123&#039;,\n  &#039;level&#039;: 2,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Login&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;login&#039;, {\n  &#039;method&#039;: &#039;Email&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Post Score&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;post_score&#039;, {\n  &#039;level&#039;: &#039;Intermediate&#039;,\n  &#039;character&#039;: &#039;Player123&#039;,\n  &#039;score&#039;: 500,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Refund&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;refund&#039;, {\n  &#039;affiliation&#039;: &#039;Online Store&#039;,\n  &#039;coupon&#039;: &#039;SUMMER20&#039;,\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;transaction_id&#039;: &#039;123456&#039;,\n  &#039;shipping&#039;: 5.00,\n  &#039;tax&#039;: 2.50,\n  &#039;value&#039;: 37.49,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Remove from Cart&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;remove_from_cart&#039;, {\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Search&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;search&#039;, {\n  &#039;search_term&#039;: &#039;Google Analytics&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Select Content&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;select_content&#039;, {\n  &#039;content_type&#039;: &#039;Article&#039;,\n  &#039;item_id&#039;: &#039;article123&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Select Item&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;select_item&#039;, {\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;item_list_name&#039;: &#039;Featured Products&#039;,\n  &#039;item_list_id&#039;: &#039;list123&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Select Promotion&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;select_promotion&#039;, {\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;promo123&#039;,\n      &#039;name&#039;: &#039;Summer Sale&#039;,\n      &#039;creative_name&#039;: &#039;Banner Ad&#039;,\n      &#039;creative_slot&#039;: &#039;Homepage&#039;,\n      &#039;location_id&#039;: &#039;banner123&#039;,\n    },\n  ],\n  &#039;promotion_id&#039;: &#039;promo123&#039;,\n  &#039;promotion_name&#039;: &#039;Summer Sale&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Share&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;share&#039;, {\n  &#039;content_type&#039;: &#039;Article&#039;,\n  &#039;item_id&#039;: &#039;article123&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Sign Up&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;sign_up&#039;, {\n  &#039;method&#039;: &#039;Google Account&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Spend Virtual Currency&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;spend_virtual_currency&#039;, {\n  &#039;item_name&#039;: &#039;In-App Upgrade&#039;,\n  &#039;virtual_currency_name&#039;: &#039;Gems&#039;,\n  &#039;value&#039;: 50,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Tutorial Begin&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;tutorial_begin&#039;);\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Tutorial Complete&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;tutorial_complete&#039;);\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;Unlock Achievement&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;unlock_achievement&#039;, {\n  &#039;achievement_id&#039;: &#039;level10&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;View Cart&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;view_cart&#039;, {\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;View Item&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;view_item&#039;, {\n  &#039;currency&#039;: &#039;USD&#039;,\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n  ],\n  &#039;value&#039;: 29.99,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;View Item List&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;view_item_list&#039;, {\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;product123&#039;,\n      &#039;name&#039;: &#039;Example Product&#039;,\n      &#039;category&#039;: &#039;Electronics&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 29.99,\n    },\n    {\n      &#039;id&#039;: &#039;product456&#039;,\n      &#039;name&#039;: &#039;Another Product&#039;,\n      &#039;category&#039;: &#039;Clothing&#039;,\n      &#039;quantity&#039;: 1,\n      &#039;price&#039;: 39.99,\n    },\n  ],\n  &#039;item_list_name&#039;: &#039;Featured Products&#039;,\n  &#039;item_list_id&#039;: &#039;list123&#039;,\n});\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">Example: Tracking &#8220;View Promotion&#8221; Event<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngtag(&#039;event&#039;, &#039;view_promotion&#039;, {\n  &#039;items&#039;: &#x5B;\n    {\n      &#039;id&#039;: &#039;promo123&#039;,\n      &#039;name&#039;: &#039;Summer Sale&#039;,\n      &#039;creative_name&#039;: &#039;Banner Ad&#039;,\n      &#039;creative_slot&#039;: &#039;Homepage&#039;,\n      &#039;location_id&#039;: &#039;banner123&#039;,\n    },\n  ],\n  &#039;promotion_id&#039;: &#039;promo123&#039;,\n  &#039;promotion_name&#039;: &#039;Summer Sale&#039;,\n});\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t hesitate to customize these code snippets for other suggested events based on your tracking requirements. By integrating these events into your GA4 setup, you&#8217;ll gain a deeper insight into user behavior and be able to enhance your online presence.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Discover the dynamic capabilities of Google Analytics 4&#8217;s recommended events, designed to effectively monitor and understand user actions on your website or app. With the ability to tailor these events to your unique needs, you can unlock valuable insights that empower strategic decision-making and propel your online business to new heights. Don&#8217;t wait any longer \u2013 take advantage of the power of GA4 recommended events now!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Are you ready to dive into the depths of digital marketing strategies? Check out our <a href=\"https:\/\/davagordon.co.uk\/blog\/category\/digital-marketing-strategies\/\" title=\"Digital Marketing Strategies\">Digital Marketing Strategies<\/a> category to gain additional insights and expert advice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the ever-evolving landscape of e-commerce, gaining insight into user behaviour is critical to achieving success. Google Analytics 4 (GA4) offers a powerful solution for monitoring and evaluating user engagement with your website or application. Among its impressive capabilities, one stands out: the implementation of recommended events. These events enable you to capture important user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":123,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[30,29,28,9],"class_list":["post-118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital-marketing-strategies","tag-digital-marketing","tag-ga4","tag-google-analytics","tag-website-development"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":9,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions\/176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/media\/123"}],"wp:attachment":[{"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davagordon.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}