mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2025-12-06 02:30:37 -08:00
Add missing tracking
This commit is contained in:
parent
52629c5bb2
commit
b446a4a915
6 changed files with 50 additions and 19 deletions
|
|
@ -42,9 +42,9 @@ export const THIRDPARTY_URLS = {
|
|||
export function openStandaloneLink(app, campaign) {
|
||||
const discount = globalConfig.currentDiscount > 0 ? "_discount" + globalConfig.currentDiscount : "";
|
||||
const steamSuffix = G_IS_STEAM_DEMO ? "_steamdemo" : "";
|
||||
app.platformWrapper.openExternalLink(
|
||||
THIRDPARTY_URLS.standaloneCampaignLink.replace("$campaign", campaign + discount + steamSuffix)
|
||||
);
|
||||
const event = campaign + discount + steamSuffix;
|
||||
app.platformWrapper.openExternalLink(THIRDPARTY_URLS.standaloneCampaignLink.replace("$campaign", event));
|
||||
app.gameAnalytics.noteMinor("g.stdlink." + event);
|
||||
}
|
||||
|
||||
export const globalConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue