I have a url that I create the following way:
let forwardBaseUrl = 'https://www.usergems.com/api/gmail/info?' + $.params({
event: 'Click forwarded link',
email: btoa(userEmail),
properties: {
forwardId: btoa(forwardId)
}
});
Is there an easy way to later add a property to the properties object: I want the same result as this:
let forwardBaseUrl = 'https://www.usergems.com/api/gmail/info?' + $.params({
event: 'Click forwarded link',
email: btoa(userEmail),
properties: {
forwardId: btoa(forwardId),
forwardUrl: 'http://google.at'
}
});
best would be a solution that merges the params. Similar to this (obviously not working):
forwardBaseUrl.params.push({properties: { forwardUrl }})