Skip to content

Domain used for reporting is not consistent, resulting in duplicates #23

@adamsilverstein

Description

@adamsilverstein

Describe the bug
When sending reporting data, the plugin currently sends the "site url" sometimes with and sometimes without the trailing slash, resulting in duplicated tracking entries.

To Reproduce
Steps to reproduce the behavior:

  1. Set up the plugin on a new domain.
  2. Check the domain sent for tracking events.

Expected behavior
The domain used for tracking should be consistent, never including a trailing slash.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information (please complete the following information):

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Plugin Version [e.g. 22]
  • Device: [e.g. iPhone6]

Additional context

  • Please add any additional information about the bug.

Do not alter or remove anything below. The following sections will be managed by moderators only.

Changelog entry

  • Ensure domain sent for reporting is consistent by trimming any trailing slashes.

Acceptance criteria

Metadata

Metadata

Labels

P1Medium priorityType: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions