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 c09d6474b..2535418e6 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java @@ -57,12 +57,18 @@ 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=android"; + shpxLink += "&utm_campaign=about_page"; + 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", - "https://ShatteredPixel.com"); + shpxLink); shpx.setRect((w - fullWidth)/2f, 6, 120, 0); content.add(shpx); 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 daf0318c6..75b49f22e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java @@ -299,7 +299,12 @@ public class NewsScene extends PixelScene { @Override protected void onClick() { super.onClick(); - DeviceCompat.openURI(article.URL); + String link = article.URL; + //tracking codes, so that the website knows where this pageview came from + link += "/?utm_source=shatteredpd"; + link += "&utm_medium=android"; + link += "&utm_campaign=news_page"; + DeviceCompat.openURI(link); } }; link.setRect(0, height + 2, width, BTN_HEIGHT);