Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Matomo tracking pixel URL to add missing data #1647

Open
cbunicef opened this issue Oct 5, 2023 · 0 comments
Open

Update Matomo tracking pixel URL to add missing data #1647

cbunicef opened this issue Oct 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cbunicef
Copy link
Collaborator

cbunicef commented Oct 5, 2023

Currently the Matomo tracking pixel implementation only uses the required arguments:

<img src="/analytics/matomo.php?idsite=51&rec=1" style="border:0" alt="" />

In Matomo we are missing certain information when it comes from tracking pixel hits (presumably, sometimes it is hard to tell):

  • Page Title
  • Page URL (in some cases, this happens with feature phones so I assume related to pixel tracking + some other effect)
  • Referrer (I think?)
  • etc

Here are Matomo's recommended arguments for the HTTP API (this is directly linked from the pixel tracking documentation so I assume it also applies):

action_name (recommended) — The title of the action being tracked. For page tracks this is used as page title. If enabled in your installation you may use the category tree structure in this field. For example, “game / register new user” would then create a group “game” and add the item “register new user” in it.
url (recommended) — The full URL for the current action.
_id (recommended) — The unique visitor ID, must be a 16 characters hexadecimal string. Every unique visitor must be assigned a different ID and this ID must not change after it is assigned. If this value is not set Matomo (formerly Piwik) will still track visits, but the unique visitors metric might be less accurate.
rand (recommended) — Meant to hold a random value that is generated before each request. Using it helps avoid the tracking request being cached by the browser or a proxy.
apiv (recommended) — The parameter &apiv=1 defines the api version to use (currently always set to 1)

https://developer.matomo.org/api-reference/tracking-api

@cbunicef cbunicef added the enhancement New feature or request label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant