Thrift module: componentevent

ModuleServicesData typesConstants
componentevent Action
ComponentEvent
ComponentType
ComponentV2

Enumerations

Enumeration: Action

Specific actions that can be taken against a Component.

Aim to use one of the existing entries here, or create a new one. The examples in the comments
are not intended to be exhaustive.

If a general "click" event is enough, consider using the "value" field in ComponentEvent
to hold any additional information relating to the click.



INSERT1
The component was inserted into its container (e.g. a web page or view in an app)


VIEW2
The component was in view on screen


EXPAND3
The component was expanded (e.g. "see more").
Not a navigation away to another page


LIKE4
A "like", thumbs up, etc.


DISLIKE5
A "dislike", thumbs down, etc.


SUBSCRIBE6
A subscription to a service, newsletter, etc.


ANSWER7
Selection of an answer in a quiz


VOTE8
A vote in a poll


CLICK9
A single click on the component which is not covered by
any of the existing Actions.


SIGN_IN10
User sign in to Guardian Identity account


CREATE_ACCOUNT11
User creates a Guardian Identity account


ACCEPT_DEFAULT_CONSENT12
User Consent


MANAGE_CONSENT13
CONSENT_ACCEPT_ALL14
CONSENT_REJECT_ALL15
STICK16
the component sticks in the screen


CLOSE17
the component is closed


RETURN18
the component is returned to it's original location


Enumeration: ComponentType

The different types of component that can be rendered



READERS_QUESTIONS_ATOM1
QANDA_ATOM2
PROFILE_ATOM3
GUIDE_ATOM4
TIMELINE_ATOM5
NEWSLETTER_SUBSCRIPTION6
SURVEYS_QUESTIONS7
ACQUISITIONS_EPIC8
ACQUISITIONS_ENGAGEMENT_BANNER9
ACQUISITIONS_THANK_YOU_EPIC10
ACQUISITIONS_HEADER11
ACQUISITIONS_FOOTER12
ACQUISITIONS_INTERACTIVE_SLICE13
ACQUISITIONS_NUGGET14
ACQUISITIONS_STANDFIRST15
ACQUISITIONS_THRASHER16
ACQUISITIONS_EDITORIAL_LINK17
ACQUISITIONS_MANAGE_MY_ACCOUNT18
ACQUISITIONS_BUTTON19
ACQUISITIONS_OTHER20
APP_ADVERT21
APP_AUDIO22
APP_BUTTON23
APP_CARD24
APP_CROSSWORDS25
APP_ENGAGEMENT_BANNER26
APP_EPIC27
APP_GALLERY28
APP_LINK29
APP_NAVIGATION_ITEM30
APP_SCREEN31
APP_THRASHER32
APP_VIDEO33
AUDIO_ATOM34
CHART_ATOM35
ACQUISITIONS_MERCHANDISING36
ACQUISITIONS_HOUSE_ADS37
SIGN_IN_GATE38
ACQUISITIONS_SUBSCRIPTIONS_BANNER39
MOBILE_STICKY_AD40
IDENTITY_AUTHENTICATION41
RETENTION_ENGAGEMENT_BANNER42
ACQUISITION_SUPPORT_SITE43
RETENTION_EPIC44
CONSENT45
LIVE_BLOG_PINNED_POST46
STICKY_VIDEO47
KEY_EVENT_CARD48
RETENTION_HEADER49
SLIDESHOW50
APP_FEATURE51
CARD52
CAROUSEL53
CONTAINER54
MENU55
ACQUISITIONS_GUTTER56

Data structures

Struct: ComponentV2

KeyFieldTypeDescriptionRequirednessDefault value
1componentTypeComponentTyperequired
2idstringAn ID that can be used to distinguish different instances of a given ComponentType optional
3productsset<product.Product>The products related to the component e.g. a banner with two buttons, one asking for people to become Supporters and one asking for contributions would contain `CONTRIBUTION` and `SUPPORTER` required
4campaignCodestringAn optional identifier for the campaign the component was used in optional
5labelsset<string>Additional labels relating to the component required

Struct: ComponentEvent

KeyFieldTypeDescriptionRequirednessDefault value
1componentComponentV2The component where the action happened required
2actionActionThe action that took place required
3valuestringAny additional data on the event, e.g. further information on a "click" event optional
4idstringA unique identifier for the component event e.g. a UUID optional
5abTestabtest.AbTestIf the event was triggered as part of an A/B test, this identifies the test and variant. optional
6targetingAbTestabtest.AbTestA targeting A/B test can be used to measure the impact of different targeting rules, independent of the primary A/B test. optional

An event representing an action taken against a component on the web or apps.