> For the complete documentation index, see [llms.txt](https://noctua-labs.gitbook.io/noctua-labs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://noctua-labs.gitbook.io/noctua-labs/noctua-labs/sdk-integration/features/attribution-and-measurements/ios/track-general-event.md).

# Track General Event

This function logs an event with a specified name and optional parameters. It is used to track user actions or other significant occurrences within an application.

**Method Signature:**

```objectivec
+ (void)trackEvent:(NSString *)eventName andWithParam:(NSDictionary *)paramDict;
```

Parameters:

* `eventName` (NSString \*): The name of the event to be tracked.
* `paramDict` (NSDictionary \*, optional): A dictionary containing key-value pairs of additional data to be logged with the event.

Example Usage:

```objectivec
// Without parameters
[YourSDKClass trackEvent:@"user_login" andWithParam:nil];

// With parameters
NSDictionary *params = @{@"method": @"email", @"user_status": @"active"};
[YourSDKClass trackEvent:@"user_login" andWithParam:params];
```
