File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ export const THIRDPARTY_URLS = {
22
22
twitter : "https://twitter.com/tobspr" ,
23
23
privacyPolicy : "https://tobspr.io/privacy.html" ,
24
24
25
- standaloneCampaignLink :
26
- G_IS_STANDALONE || true
27
- ? "https://get.shapez.io/bundle/$campaign"
28
- : "https://get.shapez.io/$campaign" ,
25
+ standaloneCampaignLink : "https://get.shapez.io/bundle/$campaign" ,
29
26
puzzleDlcStorePage : "https://get.shapez.io/mm_puzzle_dlc?target=dlc" ,
30
27
31
28
levelTutorialVideos : {
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export let queryParamOptions = {
5
5
embedProvider : null ,
6
6
abtVariant : null ,
7
7
campaign : null ,
8
+ fbclid : null ,
9
+ gclid : null ,
8
10
} ;
9
11
10
12
if ( options . embed ) {
@@ -14,6 +16,14 @@ if (options.embed) {
14
16
if ( options . abtVariant ) {
15
17
queryParamOptions . abtVariant = options . abtVariant ;
16
18
}
19
+
20
+ if ( options . fbclid ) {
21
+ queryParamOptions . fbclid = options . fbclid ;
22
+ }
23
+
24
+ if ( options . gclid ) {
25
+ queryParamOptions . gclid = options . gclid ;
26
+ }
17
27
if ( options . utm_campaign ) {
18
28
queryParamOptions . campaign = options . utm_campaign ;
19
29
}
Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ export class HUDStandaloneAdvantages extends BaseHUDPart {
49
49
: ""
50
50
}
51
51
</button>
52
- ${
53
- [ "1" , "3" ] . includes ( this . root . app . gameAnalytics . abtVariant )
54
- ? `<span class="specialOffer">${ T . global . discountSummerSale } </span>`
55
- : ""
56
- }
52
+ ${ ! G_IS_STEAM_DEMO ? `<span class="specialOffer">${ T . global . discountSummerSale } </span>` : "" }
57
53
<button class="otherCloseButton" data-btn-variant="${ G_IS_STEAM_DEMO ? "steam-demo" : "prod" } ">${
58
54
T . ingame . standaloneAdvantages . no_thanks
59
55
} </button>
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ const analyticsUrl = G_IS_DEV ? "http://localhost:8001" : "https://analytics.sha
36
36
// Be sure to increment the ID whenever it changes
37
37
const analyticsLocalFile = G_IS_STEAM_DEMO ? "shapez_token_steamdemo.bin" : "shapez_token_123.bin" ;
38
38
39
- const CURRENT_ABT = "abt_ssst " ;
40
- const CURRENT_ABT_COUNT = 4 ;
39
+ const CURRENT_ABT = "abt_bsl2 " ;
40
+ const CURRENT_ABT_COUNT = 1 ;
41
41
42
42
export class ShapezGameAnalytics extends GameAnalyticsInterface {
43
43
constructor ( app ) {
Original file line number Diff line number Diff line change @@ -110,11 +110,7 @@ export class MainMenuState extends GameState {
110
110
}
111
111
Play shapez on Steam
112
112
</a>
113
- ${
114
- [ "1" , "3" ] . includes ( this . app . gameAnalytics . abtVariant )
115
- ? `<span class="specialOffer">${ T . global . discountSummerSale } </span>`
116
- : ""
117
- }
113
+ ${ ! G_IS_STEAM_DEMO ? `<span class="specialOffer">${ T . global . discountSummerSale } </span>` : "" }
118
114
${ ! G_IS_STEAM_DEMO ? `<div class="onlinePlayerCount"></div>` : "" }
119
115
120
116
` ;
Original file line number Diff line number Diff line change @@ -48,11 +48,7 @@ export class PreloadState extends GameState {
48
48
49
49
async fetchDiscounts ( ) {
50
50
// Summer sale specific
51
- const bundle = [ "0" , "1" ] . includes ( this . app . gameAnalytics . abtVariant ) ;
52
51
globalConfig . currentDiscount = 60 ;
53
- THIRDPARTY_URLS . standaloneCampaignLink = bundle
54
- ? "https://get.shapez.io/bundle/$campaign"
55
- : "https://get.shapez.io/$campaign" ;
56
52
57
53
// Regular
58
54
// await timeoutPromise(
@@ -76,7 +72,12 @@ export class PreloadState extends GameState {
76
72
return ;
77
73
}
78
74
fetch (
79
- "https://analytics.shapez.io/campaign/" + queryParamOptions . campaign + "?lpurl=nocontent"
75
+ "https://analytics.shapez.io/campaign/" +
76
+ queryParamOptions . campaign +
77
+ "?lpurl=nocontent&fbclid=" +
78
+ queryParamOptions . fbclid +
79
+ "&gclid=" +
80
+ queryParamOptions . gclid
80
81
) . catch ( err => {
81
82
console . warn ( "Failed to send beacon:" , err ) ;
82
83
} ) ;
You can’t perform that action at this time.
0 commit comments