How to Track Custom Events on a WordPress Website using Google Analytics 4?

Key Takeaways

  • Nexter Blocks offers an Event Tracking extension that enables tracking of custom events in Google Analytics 4 on WordPress websites.
  • Users can add custom properties to events by entering a custom label and value in the Event Properties section of Nexter Blocks.
  • Google Analytics 4 may take up to 24 hours to display tracked events, but users can check events instantly using the Google Analytics Debugger Chrome extension.
Table of Contents

Tracking custom events in Google Analytics 4 (GA4) allows you to monitor specific user interactions on your WordPress website beyond the GA4 Recommended events

Whether it’s tracking clicks on custom buttons, form submissions, or other unique actions, custom event tracking provides valuable insights into user behavior.

With the Event Tracking extension of Nexter Blocks, you can easily track custom events using Google Analytics on your WordPress website.

To check the complete feature overview documentation of Nexter Blocks Event Tracking extension, click here.

Requirement  – This extension is a part of Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.

Note: To track Google events on your WordPress website you need to have Google Analytics or Google Measurement id installed on your website.

Once you’ve added the Google Measurement id, you can use buttons, forms or any custom links on blocks from Nexter Blocks to track events. So, for instance, add a button block from Nexter Blocks on the page.

1. Go to Advanced > Event Tracking

2. Turn on the Google Analytics toggle.

3. In the Event Type dropdown, select Custom

4. In the Event Name field, enter your custom event name.

event tracking add custom google event 4

5. Then, from the Event Properties section, you can add custom properties to the event.

Open the item here you’ll find two fields – 

Name – For adding a custom label to the event.

Value – For adding a custom value to the event.

You can click on the + Add Properties button to add multiple custom properties.

Let’s suppose we are promoting an affiliate product so we can add the affiliate network name and product name in the Name and Value fields, respectively.

6. In Google Analytics 4, it can take up to 24 hrs to show the events in the analytics. So to check the event instantly to know if it is working or not, install the Google Analytics Debugger Chrome extension. 

7. Open the page in Chrome and turn on the Google Analytics Debugger extension. Reload the page and click on the button.

Note: Make sure your ad blockers are disabled, and you’re not using brave browser. You can also read steps to do if your debug view isnt working. 

8. Now go to your Google Analytics then go to Admin > DebugView, here you’ll see the events live. You’ll also see your custom events and their properties.

google analytics track custom event

Also, read How to Track Custom Facebook Events in WordPress.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if my custom events aren't showing up in Google Analytics?

If your custom events aren't appearing in Google Analytics, ensure that the Google Measurement ID is correctly installed on your website. Additionally, use the Google Analytics Debugger Chrome extension to check if events are firing correctly. Remember to disable any ad blockers and avoid using the Brave browser, as these can interfere with tracking.

What are the best practices for naming custom events in Google Analytics?

When naming custom events in Google Analytics, use clear and descriptive names that reflect the action being tracked. This helps in organizing and analyzing data later. For instance, if you're tracking an affiliate product click, you might name the event 'affiliate_product_click'. Consistency in naming conventions is crucial for effective data analysis.

How long does it take for custom events to appear in Google Analytics?

Custom events can take up to 24 hours to show up in Google Analytics. However, you can use the Google Analytics Debugger Chrome extension to view events in real-time. This is particularly useful for confirming that your event tracking setup is working correctly before waiting for the standard reporting delay.

Last reviewed: April 14, 2026

Related Docs