Skip to content

Other tracking code snipplets don't get the modifications (enhancement request) #8

@Pilot001

Description

@Pilot001

In my case, it is necessary to modify the hostname within the trackingcode, as the admin-UI is available under a different hostname than the tracker endpoint, and such the developers copy a wrong tracking code.
I really appreciate this plugin. I wrote a much simpler one (static, no form) to change the code snipplets on my own once before.
But IMHO it is necessary that all tracking snipplets get those changes. The current version just modifies the javascript tracking code. In some cases other options, e. g. tracking with a pixel is used. That code snipplet still shows the wrong hostname.
At least up to Matomo 3.x it could simply be done by adding a second hook to "SitesManager.getImageTrackingCode". I haven't checked this for Matomo 4.x, yet.
I would love to be able to say there was another hook for the tagmanager container snipplets, but currently it seem's there isn't.

Best regards,
Alexander Maus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions