# Recommendations AI v1beta1 API - Class EventDetail (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/2.0.0-beta06/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/1.0.0-beta03/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail)

    public sealed class EventDetail : IMessage<EventDetail>, IEquatable<EventDetail>, IDeepCloneable<EventDetail>, IBufferMessage, IMessage

Reference documentation and code samples for the Recommendations AI v1beta1 API class EventDetail.

User event details shared by all recommendation types.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> EventDetail

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EventDetail](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EventDetail](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EventDetail](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecommendationEngine.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1)

## Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

## Constructors

### EventDetail()

    public EventDetail()

### EventDetail(EventDetail)

    public EventDetail(EventDetail other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.EventDetail` |

## Properties

### EventAttributes

    public FeatureMap EventAttributes { get; set; }

Optional. Extra user event features to include in the recommendation
model.

For product recommendation, an example of extra user information is
traffic_channel, i.e. how user arrives at the site. Users can arrive
at the site by coming to the site directly, or coming through Google
search, and etc.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.FeatureMap` |   |

### ExperimentIds

    public RepeatedField<string> ExperimentIds { get; }

Optional. A list of identifiers for the independent experiment groups
this user event belongs to. This is used to distinguish between user events
associated with different experiment setups (e.g. using Recommendation
Engine system, using different recommendation models).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### PageViewId

    public string PageViewId { get; set; }

Optional. A unique id of a web page view.
This should be kept the same for all user events triggered from the same
pageview. For example, an item detail page view could trigger multiple
events as the user is browsing the page.
The `pageViewId` property should be kept the same for all these events so
that they can be grouped together properly. This `pageViewId` will be
automatically generated if using the JavaScript pixel.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RecommendationToken

    public string RecommendationToken { get; set; }

Optional. Recommendation token included in the recommendation prediction
response.

This field enables accurate attribution of recommendation model
performance.

This token enables us to accurately attribute page view or purchase back to
the event and the particular predict response containing this
clicked/purchased item. If user clicks on product K in the recommendation
results, pass the `PredictResponse.recommendationToken` property as a url
parameter to product K's page. When recording events on product K's page,
log the PredictResponse.recommendation_token to this field.

Optional, but highly encouraged for user events that are the result of a
recommendation prediction query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ReferrerUri

    public string ReferrerUri { get; set; }

Optional. The referrer url of the current page. When using
the JavaScript pixel, this value is filled in automatically.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Uri

    public string Uri { get; set; }

Optional. Complete url (window.location.href) of the user's current page.
When using the JavaScript pixel, this value is filled in automatically.
Maximum length 5KB.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |