diff --git a/react/features/analytics/handlers/AmplitudeHandler.js b/react/features/analytics/handlers/AmplitudeHandler.js index ac576cfa6..8ac061a66 100644 --- a/react/features/analytics/handlers/AmplitudeHandler.js +++ b/react/features/analytics/handlers/AmplitudeHandler.js @@ -27,7 +27,7 @@ export default class AmplitudeHandler extends AbstractHandler { host }; - amplitude.getInstance(this._amplitudeOptions).init(amplitudeAPPKey); + amplitude.getInstance(this._amplitudeOptions).init(amplitudeAPPKey, undefined, { includeReferrer: true }); if (user) { amplitude.getInstance(this._amplitudeOptions).setUserId(user); diff --git a/react/features/analytics/handlers/amplitude/Amplitude.native.js b/react/features/analytics/handlers/amplitude/Amplitude.native.js index 7ee23ed73..56dbd2ced 100644 --- a/react/features/analytics/handlers/amplitude/Amplitude.native.js +++ b/react/features/analytics/handlers/amplitude/Amplitude.native.js @@ -35,9 +35,12 @@ class Amplitude { * Sets an identifier for the current user. * * @param {string} userId - The new user id. + * @param {string} opt_userId - Currently not used. + * @param {Object} opt_config - Currently not used. + * @param {Function} opt_callback - Currently not used. * @returns {void} */ - setUserId(userId) { + setUserId(userId, opt_userId, opt_config, opt_callback) { // eslint-disable-line camelcase, no-unused-vars AmplitudeNative.setUserId(this._instanceName, userId); }