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

Command icon 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

bluegeek9 created an issue. See original summary.

bluegeek9’s picture

Issue summary: View changes
alfthecat’s picture

For 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.

bluegeek9’s picture

bluegeek9’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
bluegeek9’s picture

Issue summary: View changes
bluegeek9’s picture

Issue summary: View changes
bluegeek9’s picture

bluegeek9’s picture

Issue summary: View changes
bluegeek9’s picture

Issue summary: View changes
bluegeek9’s picture

Issue summary: View changes

bluegeek9’s picture

Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support to this project makes other volunteer contributions more sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triaging issues and adding more context to existing issues.
  • Writing documentation or patches for this project.
bluegeek9’s picture

Priority: Minor » Normal

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.