PageViewEvent class
A representation of a page view event. This class serves as a data container for tracking user interactions on a page. After instantiating a PageViewEvent, various properties such as billing, login, content, and product events can be added.
Constructors
- PageViewEvent({Bill? bill, String? campaign, String? contactType, String? content, String? countryId, String? download, String? intern, String? langId, Login? login, String? marker, String? marketingChannel, String? orderProcess, String? pageId, Register? register, Search? search, String? siteId, String? source, Target? target})
- Creates a new PageViewEvent with the provided parameters.
Properties
- bill ↔ Bill?
-
Billing information associated with this event.
getter/setter pair
- campaign ↔ String?
-
Campaign associated with this event.
Campaign is only stored on first page view of a session.
getter/setter pair
- contactType ↔ String?
-
The type of the contact-form used.
getter/setter pair
- content ↔ String?
-
A content-label associated with this event.
getter/setter pair
- countryId ↔ String?
-
Unique identifier of the country associated with this event.
getter/setter pair
-
customProperties
→ UnmodifiableMapView<
String, dynamic> -
Returns an unmodifiable view of the custom properties map.
no setter
- download ↔ String?
-
A download-label associated with this event.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- intern ↔ String?
-
Intern associated with this event.
getter/setter pair
- langId ↔ String?
-
Unique identifier of the language associated with this event.
getter/setter pair
- login ↔ Login?
-
Login information associated with this event.
getter/setter pair
- marker ↔ String?
-
Marker associated with this event.
getter/setter pair
- marketingChannel ↔ String?
-
Marketing channel ('source') associated with this event.
Default value is 'mobile'. Your traffic is displayed in chapter 'Mobile' in Dymatrix Monitor.
Please send additional information with the appropriate property.
For the newsletter channel 'nl' please use property 'newsletter' for submitting additional information
marketingChannel = 'nl';
setStringProperty('newsletter','newsletter name');
For the keyword channel 'kw' please use property 'adword' for submitting additional information.
marketingChannel = 'kw';
setStringProperty('adword','keyword campaign name');
For the campaign channel 'cp' and all other channels please use property 'campaign' for submitting additional information.
marketingChannel = 'cp';
setStringProperty('campaign','campaign name');
MarketingChannel is only stored on first page view of a session.
All subsequent page views in same session inherit the channel of the first page view.
Marketingchannel 'mobile' is not configured by default in Dymatrix Analytics.
Please contact support, if you want to use the mobile channel.
getter/setter pair
- orderProcess ↔ String?
-
Label to identify the step in the order-process.
This has to be a positive integer followed by an underscore and the label,
e.g. "1_Kundendaten", "2_Zahlungsoptionen", ..
getter/setter pair
- pageId ↔ String?
-
Unique identifier of the page that is used by Clickmonitor.
getter/setter pair
-
productEvents
→ UnmodifiableListView<
ProductEvent> -
Returns an unmodifiable view of the product events list.
no setter
- register ↔ Register?
-
Registration information associated with this event.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search ↔ Search?
-
Search information associated with this event.
getter/setter pair
- siteId ↔ String?
-
Unique identifier of the site associated with this event.
getter/setter pair
- source ↔ String?
-
Source associated with this event.
getter/setter pair
- target ↔ Target?
-
Target associated with this event.
getter/setter pair
Methods
-
addProductAddedToBasketEvent(
BasketItem item) → void - Adds a product event indicating a product was added to the basket.
-
addProductBoughtEvent(
BasketItem item) → void - Adds a product event indicating a product was purchased.
-
addProductEvent(
BasketItem item, String eventType) → void -
Adds a custom product event with a specific
eventType. -
addProductRemovedFromBasketEvent(
BasketItem item) → void - Adds a product event indicating a product was removed from the basket.
-
addProductViewedEvent(
BasketItem item) → void - Adds a product event indicating a product was viewed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBooleanProperty(
String key, bool value) → void - Sets a custom boolean property for this event.
-
setNumberProperty(
String key, num value) → void - Sets a custom numeric property for this event.
-
setStringProperty(
String key, String value) → void - Sets a custom string property for this event.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited