Piwik campaign tracking not working


#1

Hi, I need to track same web page in two different piwik sites. basically one is staging one. the problem is piwik sending data to only one site. For example action pages one piwik site showing 33248 action while another one showing only 47. Can we have two scripts in same page if not how to handle two scripts. i have changed variable _paq => _paqSTG and tested it but no luck.

Thanks


(Matthieu Aubry) #2

When you have multiple trackers on same page please read this: JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

it’s quite particular / complex solution that involves using the “old” JS tracker