You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
623 B
30 lines
623 B
const queryString = require("query-string");
|
|
const options = queryString.parse(location.search);
|
|
|
|
export let queryParamOptions = {
|
|
embedProvider: null,
|
|
abtVariant: null,
|
|
campaign: null,
|
|
fbclid: null,
|
|
gclid: null,
|
|
};
|
|
|
|
if (options.embed) {
|
|
queryParamOptions.embedProvider = options.embed;
|
|
}
|
|
|
|
if (options.abtVariant) {
|
|
queryParamOptions.abtVariant = options.abtVariant;
|
|
}
|
|
|
|
if (options.fbclid) {
|
|
queryParamOptions.fbclid = options.fbclid;
|
|
}
|
|
|
|
if (options.gclid) {
|
|
queryParamOptions.gclid = options.gclid;
|
|
}
|
|
if (options.utm_campaign) {
|
|
queryParamOptions.campaign = options.utm_campaign;
|
|
}
|