diff --git a/src/classes/Metrics.js b/src/classes/Metrics.js index e1138af4f..908515bb3 100644 --- a/src/classes/Metrics.js +++ b/src/classes/Metrics.js @@ -248,7 +248,7 @@ class Metrics { // Subscription Interval this._buildQueryPair('si', Metrics._getSubscriptionInterval().toString()) + // Product ID Parameter - this._buildQueryPair('pi', 'gbe'); + this._buildQueryPair('pi', Metrics._getProductID()); if (type !== 'uninstall') { metrics_url += @@ -369,6 +369,18 @@ class Metrics { }); } + /** + * Get the product ID + * + * @private + * + * @return {string} The Product ID + */ + static _getProductID() { + if (BROWSER_INFO.token === 'gd') return 'gd'; + return 'gbe'; + } + /** * Calculate days since the last daily active ping. *