v0.8.2a: added link tracking to 'read more' in NewsScene

This commit is contained in:
Evan Debenham 2020-08-09 15:51:20 -04:00
parent 6c53c8aa22
commit afe8bf9037

View File

@ -145,7 +145,12 @@ public class NewsScene extends PixelScene {
@Override @Override
protected void onClick() { protected void onClick() {
super.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)); btnSite.icon(Icons.get(Icons.NEWS));