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:
@@ -64,18 +64,12 @@ public class AboutScene extends PixelScene {
|
|||||||
|
|
||||||
//*** Shattered Pixel Dungeon Credits ***
|
//*** 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,
|
CreditsBlock shpx = new CreditsBlock(true, Window.SHPX_COLOR,
|
||||||
"Shattered Pixel Dungeon",
|
"Shattered Pixel Dungeon",
|
||||||
Icons.SHPX.get(),
|
Icons.SHPX.get(),
|
||||||
"Developed by: _Evan Debenham_\nBased on Pixel Dungeon's open source",
|
"Developed by: _Evan Debenham_\nBased on Pixel Dungeon's open source",
|
||||||
"ShatteredPixel.com",
|
"ShatteredPixel.com",
|
||||||
shpxLink);
|
"https://ShatteredPixel.com");
|
||||||
if (landscape()){
|
if (landscape()){
|
||||||
shpx.setRect((w - fullWidth)/2f - 6, 10, 120, 0);
|
shpx.setRect((w - fullWidth)/2f - 6, 10, 120, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -145,12 +145,7 @@ public class NewsScene extends PixelScene {
|
|||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
String link = "https://ShatteredPixel.com";
|
ShatteredPixelDungeon.platform.openURI("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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
btnSite.icon(Icons.get(Icons.NEWS));
|
btnSite.icon(Icons.get(Icons.NEWS));
|
||||||
@@ -315,12 +310,7 @@ public class NewsScene extends PixelScene {
|
|||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
String link = article.URL;
|
ShatteredPixelDungeon.platform.openURI(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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
link.setRect(0, height + 2, width, BTN_HEIGHT);
|
link.setRect(0, height + 2, width, BTN_HEIGHT);
|
||||||
|
|||||||
Reference in New Issue
Block a user