Table of Contents

Class Ga4TagEvent

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

Represents an event sent the way a web page's Google tag (gtag.js) sends it.

public class Ga4TagEvent
Inheritance
Ga4TagEvent
Inherited Members

Properties

DocumentLocation

Gets the page's location, or null.

public string? DocumentLocation { get; init; }

Property Value

string

DocumentReferrer

Gets or sets the page's referrer, or null.

public string? DocumentReferrer { get; set; }

Property Value

string

DocumentTitle

Gets the page's title, or null.

public string? DocumentTitle { get; init; }

Property Value

string

EngagementTime

Gets the engagement time since the last event, in milliseconds, or null.

public long? EngagementTime { get; init; }

Property Value

long?

EventName

Gets the event's name.

public required string EventName { get; init; }

Property Value

string

IsFirstVisit

Gets a value indicating whether this is the user's first visit.

public bool IsFirstVisit { get; init; }

Property Value

bool

Properties

Gets the event's properties, by name; an int or long is sent as a number.

public Dictionary<string, object?> Properties { get; init; }

Property Value

Dictionary<string, object>