From 38774831911d240101855fce67c0b95f40514b33 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 15 Jul 2024 14:47:47 -0400 Subject: [PATCH] v2.5.0: removed tracking extensions from URLs in game Shatteredpixel.com is ditching google analytics so these are unnecessary --- .../shatteredpixeldungeon/scenes/AboutScene.java | 8 +------- .../shatteredpixeldungeon/scenes/NewsScene.java | 14 ++------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java index 6914bd71b..e8f712790 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java @@ -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 { diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java index 2d52302f4..67b82aa7b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java @@ -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);