@smartin77 wrote:
Hello,
I need to modify default tracking code and let user to view modified code in his account settings.I read this article: https://developer.piwik.org/guides/theming
I have my custom API plugin. It wok with REST calls normally. But with this plugin I also want to add template with modified tracking code.
I created modified file:
plugins/[MyAPIplugin]/templates/javascriptCode.twig
Modification hasn’t been applied so I tried also:
plugins/[MyAPIplugin]/templates/plugins/Morpheus/javascriptCode.twig
and
plugins/[MyAPIplugin]/templates/plugins/Morpheus/templates/javascriptCode.twig
Modification still wasnt there.
I also set “theme” to “true” in plugin.jsWhen I modify orininal plugins/Morpheus/templates/javascriptCode.twig, modification is there.
Working with Piwik 3.2.0 on PHP 5.6.18
Maybe this is a bug, because https://developer.piwik.org/guides/theming says it is possible to do this way as I tried.
Posts: 1
Participants: 1