From afe8bf9037d72e0b0d156a4e1782da1beb39e4af Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 9 Aug 2020 15:51:20 -0400 Subject: [PATCH] v0.8.2a: added link tracking to 'read more' in NewsScene --- .../shatteredpixeldungeon/scenes/NewsScene.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 3e937c229..af122429c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/NewsScene.java @@ -145,7 +145,12 @@ public class NewsScene extends PixelScene { @Override protected void onClick() { super.onClick(); - DeviceCompat.openURI("https://ShatteredPixel.com/"); + 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"; + DeviceCompat.openURI(link); } }; btnSite.icon(Icons.get(Icons.NEWS));