v2.5.0: removed tracking extensions from URLs in game

Shatteredpixel.com is ditching google analytics so these are unnecessary
This commit is contained in:
Evan Debenham
2024-07-15 14:47:47 -04:00
parent 9ebf0357ef
commit 3877483191
2 changed files with 3 additions and 19 deletions

View File

@@ -64,18 +64,12 @@ public class AboutScene extends PixelScene {
//*** Shattered Pixel Dungeon Credits ***
String shpxLink = "https://ShatteredPixel.com";
//tracking codes, so that the website knows where this pageview came from
shpxLink += "?utm_source=shatteredpd";
shpxLink += "&utm_medium=about_page";
shpxLink += "&utm_campaign=ingame_link";
CreditsBlock shpx = new CreditsBlock(true, Window.SHPX_COLOR,
"Shattered Pixel Dungeon",
Icons.SHPX.get(),
"Developed by: _Evan Debenham_\nBased on Pixel Dungeon's open source",
"ShatteredPixel.com",
shpxLink);
"https://ShatteredPixel.com");
if (landscape()){
shpx.setRect((w - fullWidth)/2f - 6, 10, 120, 0);
} else {

View File

@@ -145,12 +145,7 @@ public class NewsScene extends PixelScene {
@Override
protected void onClick() {
super.onClick();
String link = "https://ShatteredPixel.com";
//tracking codes, so that the website knows where this pageview came from
link += "?utm_source=shatteredpd";
link += "&utm_medium=news_page";
link += "&utm_campaign=ingame_link";
ShatteredPixelDungeon.platform.openURI(link);
ShatteredPixelDungeon.platform.openURI("https://ShatteredPixel.com");
}
};
btnSite.icon(Icons.get(Icons.NEWS));
@@ -315,12 +310,7 @@ public class NewsScene extends PixelScene {
@Override
protected void onClick() {
super.onClick();
String link = article.URL;
//tracking codes, so that the website knows where this pageview came from
link += "?utm_source=shatteredpd";
link += "&utm_medium=news_page";
link += "&utm_campaign=ingame_link";
ShatteredPixelDungeon.platform.openURI(link);
ShatteredPixelDungeon.platform.openURI(article.URL);
}
};
link.setRect(0, height + 2, width, BTN_HEIGHT);