Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

How to use two incompatible version of Piwik on a website (or how to avoid overlapping global variables)

$
0
0

@faza wrote:

Hi,

Here is my issue, I am using Piwik 2 and it is declaring a global variable window.Piwik. But another third party tag is also installed on the same page and presumably using a prior version of Piwik which is overriding the global variable window.Piwik with less features than Piwik 2. The result is that Piwik 2 features are not accessible.

How could I solve it without destroying the Piwik global variable already existing ?
I would like to load Piwik in a custom variable, the best would be not global :slight_smile: but I also don’t want to change piwik.js file.

What are your thoughts on it ? Did you face it already ?

Florian

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles