feat: add tracking option to extend matomo config#2
feat: add tracking option to extend matomo config#2dumconstantin wants to merge 3 commits intokarser:mainfrom
Conversation
|
Thanks for the PR. Can you please document an option equivalent to |
|
Sure, I've added it to the readme. |
|
Sorry for the delay, just got to it. Original behavior, you can check it here: This PR - the behavior is not the same, which leads Matomo to get blocked by brave or adblock |
| _paq.push(['trackPageView']); | ||
| _paq.push(['enableLinkTracking']); |
There was a problem hiding this comment.
Hi, is this PR still in development? I would need this change too.
Also not sure why this shouldn't work or be different from the current state. Maybe the order of the element creates the problem? My guide mentioned that my option should be added at the beginning for example.
So maybe we could make the following changes and add everything to the config? That way everyone can specify the order of elements like this in the config
matomo: {
matomoUrl: 'https://vega.dev.trackmage.com/',
siteId: '2',
phpLoader: 'mm.php',
jsLoader: 'mjs.php',
tracking: [
['setRequestMethod', 'POST'],
['trackPageView'],
['enableLinkTracking']
['enableHeartBeatTimer'],
]
},
| _paq.push(['trackPageView']); | |
| _paq.push(['enableLinkTracking']); |


Added a way to extend the plugin configuration so that other Matomo options can be used.
Also, removed
'enableHeartBeatTimerandsetRequestMethodfrom the default configs - these can be added if needed.See README.md changes for usage.