# How to Create a GA4 Custom Event

## Before you proceed, you will have to have completed the following:&#x20;

* Create your GA4 Account
* Create a web data stream
* Delivery of the ID to the DoctorLogic support team via email&#x20;

### Instructions:&#x20;

1. Select "Events" from the lefthand side menu
2. Click the blue "Create Event" button
   1\.

   ```
   <figure><img src="/files/Jzigru28Xttdw2yOGlWc" alt=""><figcaption></figcaption></figure>
   ```
3. Fill in your Custom Event Name
   1. Ex: Contact Form Submission
4. Add a name, parameters, a trigger, and custom dimensions.&#x20;

   1.

   ```
   <figure><img src="/files/AS7fx6GXqTdaZ1ANd3Kh" alt=""><figcaption></figcaption></figure>
   ```

   **Click Create!**

### How to test your event:

* Visit your website
* Replicate the custom event you have provisioned&#x20;
* In GA4, go to Reports > Real Time
  * Verify that you see your custom event was triggered!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.doctorlogic.com/docs/extensions/google-analytics/how-to-create-a-ga4-custom-event.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
