mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-04-22 05:28:50 -05:00
actually, let's put it into a variable
This commit is contained in:
@@ -4,9 +4,11 @@ const getCookie = (name) => {
|
||||
if (parts.length === 2) return parts.pop().split(";").shift();
|
||||
};
|
||||
|
||||
const branch = import.meta.env.BRANCH || "unknown-branch";
|
||||
|
||||
var _paq = (window._paq = window._paq || []);
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['setCustomDimension', 1, import.meta.env.BRANCH]); // ab-branch
|
||||
_paq.push(['setCustomDimension', 1, branch]); // ab-branch
|
||||
_paq.push(["trackPageView"]);
|
||||
_paq.push(["enableLinkTracking"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user