HitBuilders.ScreenViewBuilder
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The HitBuilders.ScreenViewBuilder class is used to build a screen view hit for Google Analytics.
This class extends HitBuilder and can utilize its common set and get methods to add fields to the builder.
It includes a public constructor ScreenViewBuilder().
The class inherits various methods from HitBuilders.HitBuilder such as adding product impressions, products, promotions, and building the hit into a Map.
Inherited methods also allow setting campaign parameters, custom dimensions and metrics, hit type, and non-interaction status.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],["The `ScreenViewBuilder` class constructs screen view hits and extends `HitBuilder`. It allows adding fields using setter methods. Key actions include: adding product impressions, product information, and promotions; setting custom dimensions and metrics; setting hit type, new session status, and non-interaction; and setting product or promotion actions. It also provides a method to build a map of parameters and values. Additionally it provides a constructor method to initiate the `ScreenViewBuilder` object.\n"]]