Table of Contents

Class Ga4MeasurementEvent

Namespace
Ga4.Trackers.Ga4Measurements
Assembly
VpnHood.Net.Toolkit.dll

Represents an event of Google Analytics 4's Measurement Protocol: its name and parameters.

public class Ga4MeasurementEvent : ICloneable
Inheritance
Ga4MeasurementEvent
Implements
Inherited Members

Properties

EventName

Gets the event's name.

[JsonPropertyName("name")]
public required string EventName { get; init; }

Property Value

string

Parameters

Gets or sets the event's parameters, by name. The default is none.

[JsonPropertyName("params")]
public Dictionary<string, object?> Parameters { get; set; }

Property Value

Dictionary<string, object>

Methods

Clone()

Copies the event, with a parameter dictionary of its own whose names ignore case.

public object Clone()

Returns

object

The copy.

Exceptions

ArgumentException

Two parameter names collide when case is ignored.