Skip to content

Commit

Permalink
Add container parameter to Piwik Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC authored May 31, 2023
1 parent c482e7b commit 43b6421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ tarteaucitron.services.piwikpro = {
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
"js": function () {
"use strict";
if (tarteaucitron.user.piwikProId === undefined) {
if (tarteaucitron.user.piwikProId === undefined || tarteaucitron.user.piwikProContainer === undefined) {
return;
}

Expand All @@ -808,7 +808,7 @@ tarteaucitron.services.piwikpro = {
var qP = [];

var qPString = qP.length > 0 ? ("?" + qP.join("&")) : "";
tarteaucitron.addScript('https://carsatse.containers.piwik.pro/'+tarteaucitron.user.piwikProId+'.js'+qPString);
tarteaucitron.addScript('https://'+tarteaucitron.user.piwikProContainer+'.containers.piwik.pro/'+tarteaucitron.user.piwikProId+'.js'+qPString);

! function(a, n, i) {
a[n] = a[n] || {};
Expand Down

0 comments on commit 43b6421

Please sign in to comment.