Skip to main content

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 actions, providing invaluable information on their journey and empowering you to make informed decisions based on data.

Welcome to our blog post! Today, we will be diving into the world of GA4 and showing you the top suggested events. Plus, we’ll equip you with the proper code implementations so you can effortlessly track these events and see results.

Understanding Recommended GA4 Events:

Before we delve into the code, it’s important to examine the extensive list of recommended events offered by Google Analytics 4 in great detail.

  1. add_payment_info:
    • Parameters: coupon, currency, items, payment_type, value.
  2. add_shipping_info:
    • Parameters: coupon, currency, items, shipping_tier, value.
  3. add_to_cart:
    • Parameters: currency, items, value.
  4. add_to_wishlist:
    • Parameters: currency, items, value.
  5. begin_checkout:
    • Parameters: coupon, currency, items, value.
  6. earn_virtual_currency:
    • Parameters: virtual_currency_name, value.
  7. generate_lead:
    • Parameters: value, currency.
  8. join_group:
    • Parameters: group_id.
  9. level_end:
    • Parameters: level_name, success.
  10. level_start:
    • Parameters: level_name.
  11. level_up:
    • Parameters: character, level.
  12. login:
    • Parameters: method.
  13. post_score:
    • Parameters: level, character, score.
  14. purchase:
    • Parameters: affiliation, coupon, currency, items, transaction_id, shipping, tax, value.
  15. refund:
    • Parameters: affiliation, coupon, currency, items, transaction_id, shipping, tax, value.
  16. remove_from_cart:
    • Parameters: currency, items, value.
  17. search:
    • Parameters: search_term.
  18. select_content:
    • Parameters: content_type, item_id.
  19. select_item:
    • Parameters: items, item_list_name, item_list_id.
  20. select_promotion:
    • Parameters: items, promotion_id, promotion_name, creative_name, creative_slot, location_id.
  21. share:
    • Parameters: content_type, item_id.
  22. sign_up:
    • Parameters: method.
  23. spend_virtual_currency:
    • Parameters: item_name, virtual_currency_name, value.
  24. tutorial_begin:
    • No parameters.
  25. tutorial_complete:
    • No parameters.
  26. unlock_achievement:
    • Parameters: achievement_id.
  27. view_cart:
    • Parameters: currency, items, value.
  28. view_item:
    • Parameters: currency, items, value.
  29. view_item_list:
    • Parameters: items, item_list_name, item_list_id.
  30. view_promotion:
    • Parameters: items, promotion_id, promotion_name, creative_name, creative_slot, location_id.

Code Implementation:

Alright, here are the code snippets you’ll need to put into action some of these recommended events. Keep in mind, it’s important to personalise the parameters to fit your unique situation.

Example: Tracking “Add to Cart” Event

gtag('event', 'add_to_cart', {
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'value': 29.99,
});

Example: Tracking “Purchase” Event

gtag('event', 'purchase', {
  'affiliation': 'Online Store',
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'transaction_id': '123456',
  'shipping': 5.00,
  'tax': 2.50,
  'value': 37.49,
});

Example: Tracking “Add Payment Info” Event

gtag('event', 'add_payment_info', {
  'coupon': 'SUMMER20',
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'payment_type': 'Credit Card',
  'value': 29.99,
});

Example: Tracking “Add Shipping Info” Event

gtag('event', 'add_shipping_info', {
  'coupon': 'FREESHIP',
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'shipping_tier': 'Express',
  'value': 29.99,
});

Example: Tracking “Add to Wishlist” Event

gtag('event', 'add_to_wishlist', {
  'currency': 'USD',
  'items': [
    {
      'id': 'product456',
      'name': 'Another Product',
      'category': 'Clothing',
      'quantity': 1,
      'price': 39.99,
    },
  ],
  'value': 39.99,
});

Example: Tracking “Begin Checkout” Event

gtag('event', 'begin_checkout', {
  'coupon': 'CHECKOUT10',
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'value': 29.99,
});

Example: Tracking “Earn Virtual Currency” Event

gtag('event', 'earn_virtual_currency', {
  'virtual_currency_name': 'Coins',
  'value': 100,
});

Tracking “Generate Lead” Event

gtag('event', 'generate_lead', {
  'value': 10,
  'currency': 'USD',
});

Example: Tracking “Join Group” Event

gtag('event', 'join_group', {
  'group_id': 'community123',
})

Example: Tracking “Level End” Event

gtag('event', 'level_end', {
  'level_name': 'Intermediate',
  'success': true,
});

Example: Tracking “Level Start” Event

gtag('event', 'level_start', {
  'level_name': 'Beginner',
});

Example: Tracking “Level Up” Event

gtag('event', 'level_up', {
  'character': 'Player123',
  'level': 2,
});

Example: Tracking “Login” Event

gtag('event', 'login', {
  'method': 'Email',
});

Example: Tracking “Post Score” Event

gtag('event', 'post_score', {
  'level': 'Intermediate',
  'character': 'Player123',
  'score': 500,
});

Example: Tracking “Refund” Event

gtag('event', 'refund', {
  'affiliation': 'Online Store',
  'coupon': 'SUMMER20',
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'transaction_id': '123456',
  'shipping': 5.00,
  'tax': 2.50,
  'value': 37.49,
});

Example: Tracking “Remove from Cart” Event

gtag('event', 'remove_from_cart', {
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'value': 29.99,
});

Example: Tracking “Search” Event

gtag('event', 'search', {
  'search_term': 'Google Analytics',
});

Example: Tracking “Select Content” Event

gtag('event', 'select_content', {
  'content_type': 'Article',
  'item_id': 'article123',
});

Example: Tracking “Select Item” Event

gtag('event', 'select_item', {
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'item_list_name': 'Featured Products',
  'item_list_id': 'list123',
});

Example: Tracking “Select Promotion” Event

gtag('event', 'select_promotion', {
  'items': [
    {
      'id': 'promo123',
      'name': 'Summer Sale',
      'creative_name': 'Banner Ad',
      'creative_slot': 'Homepage',
      'location_id': 'banner123',
    },
  ],
  'promotion_id': 'promo123',
  'promotion_name': 'Summer Sale',
});

Example: Tracking “Share” Event

gtag('event', 'share', {
  'content_type': 'Article',
  'item_id': 'article123',
});

Example: Tracking “Sign Up” Event

gtag('event', 'sign_up', {
  'method': 'Google Account',
});

Example: Tracking “Spend Virtual Currency” Event

gtag('event', 'spend_virtual_currency', {
  'item_name': 'In-App Upgrade',
  'virtual_currency_name': 'Gems',
  'value': 50,
});

Example: Tracking “Tutorial Begin” Event

gtag('event', 'tutorial_begin');

Example: Tracking “Tutorial Complete” Event

gtag('event', 'tutorial_complete');

Example: Tracking “Unlock Achievement” Event

gtag('event', 'unlock_achievement', {
  'achievement_id': 'level10',
});

Example: Tracking “View Cart” Event

gtag('event', 'view_cart', {
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'value': 29.99,
});

Example: Tracking “View Item” Event

gtag('event', 'view_item', {
  'currency': 'USD',
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
  ],
  'value': 29.99,
});

Example: Tracking “View Item List” Event

gtag('event', 'view_item_list', {
  'items': [
    {
      'id': 'product123',
      'name': 'Example Product',
      'category': 'Electronics',
      'quantity': 1,
      'price': 29.99,
    },
    {
      'id': 'product456',
      'name': 'Another Product',
      'category': 'Clothing',
      'quantity': 1,
      'price': 39.99,
    },
  ],
  'item_list_name': 'Featured Products',
  'item_list_id': 'list123',
});

Example: Tracking “View Promotion” Event

gtag('event', 'view_promotion', {
  'items': [
    {
      'id': 'promo123',
      'name': 'Summer Sale',
      'creative_name': 'Banner Ad',
      'creative_slot': 'Homepage',
      'location_id': 'banner123',
    },
  ],
  'promotion_id': 'promo123',
  'promotion_name': 'Summer Sale',
});

Don’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’ll gain a deeper insight into user behavior and be able to enhance your online presence.

Conclusion:


Discover the dynamic capabilities of Google Analytics 4’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’t wait any longer – take advantage of the power of GA4 recommended events now!

Are you ready to dive into the depths of digital marketing strategies? Check out our Digital Marketing Strategies category to gain additional insights and expert advice.