Skip to content

Commit e513fbe

Browse files
authored
4.x compat patch (#7)
* Update plugin.json * Update README.md * Update TrackingCodeCustomizer.php
1 parent 3d7d19e commit e513fbe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matomo, formerly Piwik, TrackingCodeCustomizer Plugin
1+
# Matomo TrackingCodeCustomizer Plugin
22
Tracking Code Customizer plugin for the Matomo Web Analytics software package
33

44
## Description
@@ -34,6 +34,7 @@ _paq.push(['setTrackerUrl', u+'piwik.php']);
3434
```
3535

3636
## Changelog
37+
- 4.0.0 Updated for compatibility with Piwik 4.0+. Removed Piwik branding. Changed to new 'Tracker' event handler namespace.
3738
- 3.0.0 Updated for compatibility with Piwik 3.0+. Added "Matomo" branding. Users on pre 3.0 release please see 2.x-dev branch.
3839
- 0.1.2 Updated for compatibility with Piwik v2.15 and included new registerEvents() hook for compatibility with Piwik 3.0
3940
- 0.1.1 Version bump to activation Marketplace hook

TrackingCodeCustomizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class TrackingCodeCustomizer extends \Piwik\Plugin
3838
{
3939
private static $hooks = array(
40-
'Piwik.getJavascriptCode' => 'applyTrackingCodeCustomizations'
40+
'Tracker.getJavascriptCode' => 'applyTrackingCodeCustomizations'
4141
);
4242

4343
public function registerEvents()

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"customize tracking",
99
"customise tracking"
1010
],
11-
"description": "Allows Matomo (Piwik) admininstrators to customize the tracking code that is autogenerated for users. This is useful for directing requests to the correct servers in a multi-server setup, include additional parameters in default tracking, or to perform conditional checks before initiating a tracking call. ",
11+
"description": "Allows Matomo admininstrators to customize the tracking code that is autogenerated for users. This is useful for directing requests to the correct servers in a multi-server setup, include additional parameters in default tracking, or to perform conditional checks before initiating a tracking call. ",
1212
"homepage": "https:\/\/github.com\/jbrule\/piwikplugin-TrackingCodeCustomizer",
1313
"theme": false,
1414
"require": {
@@ -18,7 +18,7 @@
1818
{
1919
"name": "Josh Brule",
2020
"email": "",
21-
"homepage": "https:\/\/www.linkedin.com\/pub\/joshua-brule\/15\/326\/9b9"
21+
"homepage": "https://github.com/jbrule/"
2222
}
2323
]
2424
}

0 commit comments

Comments
 (0)