> “HomepageModule” very similar to HelpPanel with action and action_data to capture impressions, link clicks and other simple interactions with modules.
``` lang=json
{
"description": "Logs interactions with the homepage modules on the Special:Homepage provided by the GrowthExperiments extension",
"properties": {
"action": {
"type": "string",
"required": true,
"enum": [
"impression",
"hover-in",
"hover-out",
"link-click"
],
"description": "Action the user took:\n\n- impression: Module is shown to user\n\n- hover-in: User mouse pointer enters the element.\n\n- hover-out: User mouse pointer leaves the element\n\n- link-click: User clicks a link in the module"
},
"action_data": {
"type": "string",
"description": "Additional data for certain actions:\n\nFor action=link-click: symbolic name of the link being clicked"
},
"user_id": {
"type": "integer",
"required": true,
"description": "The user id."
},
"user_editcount": {
"type": "integer",
"required": true,
"description": "The total number of edits of the user."
},
"module": {
"type": "string",
"enum": [
"start",
"start-accountcreated",
"start-tutorial",
"start-userpage",
"start-email",
"impact",
"help",
"mentorship"
],
"required": true,
"description": "The module the user is interacting with"
},
"is_mobile": {
"type": "boolean",
"required": true,
"description": "Whether the mobile site is being used."
},
"session_token": {
"type": "string",
"required": true,
"description": "Session token that survives across pages (mw.user.sessionId()), but not browser restarts, used in deterministic user bucketing. This will only be set for client-side (JavaScript-generated) events, for server-side events the value will be an empty string."
},
"homepagemodules_session_id": {
"type": "string",
"required": true,
"description": "One-time token per page load. This is like page_token and has the same behavior, but it isn't obtained through getPageViewToken(), so its value is different."
}
}
}
```