Problem/Motivation
We track page views, but people do more than view pages. We should track more actions and allow custom actions.
Steps to reproduce
Proposed resolution
Create an additional table to track visitors' actions (visitors_action)
Remaining tasks
User interface changes
- Page views
- Page refresh
- Site Search
- External Link
- Ecommerce Carts change Add/Remove
- Ecommerce abandoned cart
- Ecommerce cart checkout complete
- File download
- Media play, seek, etc
- User logout
- Account Switch
- Form submit
- form:form_name
- form:user_login_form
API changes
plugin: Entity
action: defined by route; collection, canonical
plugin_int_1: entity id
plugin_int_2: revision id
plugin_var_1: entity_type
plugin_var_2: bundle or config entity id
plugin_var_3: base form id
plugin_var_4: form id
plugin: Form
action: view/validate/submit
plugin_int_1
plugin_int_2
plugin_var_1
plugin_var_2
plugin_var_3: base form id
plugin_var_4: form id
Data model changes
Rename visitors_view table to visitors_action
Add these columns to visitors_action:
plugin
action
plugin_int_1
plugin_int_2
plugin_var_1
plugin_var_2
plugin_var_3
plugin_var_4
Issue fork visitors-3383558
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bluegeek9 commentedComment #3
alfthecat commentedFor completeness, adding a reference to the discussion in #3376634: View Counter:field: Any Content Entity Type, on tracking impressions which would benefit community sites and commerce (market) place type setups that wish to leverage boosting of posts, advertisements, and impression view counts of entities in various views displays across a site.
Comment #4
bluegeek9 commented#3492666: Impression tracking
Comment #5
bluegeek9 commentedComment #6
bluegeek9 commentedComment #7
bluegeek9 commentedComment #8
bluegeek9 commentedComment #9
bluegeek9 commentedComment #10
bluegeek9 commentedComment #11
bluegeek9 commentedComment #14
bluegeek9 commentedComment #15
bluegeek9 commented