Problem/Motivation

Identifying unique visitors among un authenticated users is difficult.

Steps to reproduce

Proposed resolution

Add two cookies:

  • _pk_id – 13 months (used to store a few details about the user such as the unique visitor ID)
  • _pk_ses – 30 minutes (short lived cookies used to temporarily store data for the visit)

The site's session cookie may have a session life longer than 30 minutes. There is a separate visitor session cookie for visitors reports.

Remaining tasks

  1. Rename visitors_id column to id
  2. Add visitor_id (varchar(32)) for unique visitor id
  3. Create cookie service to read cookies
  4. Log visitor id

User interface changes

API changes

Data model changes

Add one column to store the unique visitor id

Issue fork visitors-3377958

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
bluegeek9’s picture

Status: Active » Needs review

This is intended as part of the 8.x-2.17 release.

bluegeek9’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

bluegeek9’s picture

This issue was resolved. A new release, 8.x-2.17, will be made soon, May 31st.

This is an excellent opportunity to beta test the dev branch, and report any issues.

Contributors (5)

bluegeek9, roshni27, abhishek_gupta1, sarwan_verma, SandeepSingh199

Changelog

Issues: 32 issues resolved.

Changes since 8.x-2.16:

Bug

Feature

Task