@@ -0,0 +1,1830 @@
+package org.wikipedia.analytics;%0A%0Aimport android.text.TextUtils;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0Aimport org.wikipedia.PageTitle;%0Aimport org.wikipedia.Site;%0Aimport org.wikipedia.WikipediaApp;%0A%0Aimport java.util.List;%0A%0Apublic class SuggestedPagesFunnel extends Funnel %7B%0A    private static final String SCHEMA_NAME = %22MobileWikiAppArticleSuggestions%22;%0A    private static final int REV_ID = 10590869;%0A%0A    private final String appInstallID;%0A    private final Site site;%0A%0A    public SuggestedPagesFunnel(WikipediaApp app, Site site) %7B%0A        super(app, SCHEMA_NAME, REV_ID);%0A%0A        //Retrieve this app installation's unique ID, used to record unique users of features%0A        appInstallID = app.getAppInstallID();%0A%0A        this.site = site;%0A    %7D%0A%0A    @Override%0A    protected JSONObject preprocessData(JSONObject eventData) %7B%0A        try %7B%0A            eventData.put(%22appInstallID%22, appInstallID);%0A        %7D catch (JSONException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A        return eventData;%0A    %7D%0A%0A    protected void log(Object... params) %7B%0A        super.log(site, params);%0A    %7D%0A%0A    public void logSuggestionsShown(PageTitle currentPageTitle, List%3CPageTitle%3E suggestedTitles) %7B%0A        log(%0A                %22action%22, %22shown%22,%0A                %22pageTitle%22, currentPageTitle.getDisplayText(),%0A                %22readMoreList%22, TextUtils.join(%22%7C%22, suggestedTitles)%0A        );%0A    %7D%0A%0A    public void logSuggestionClicked(PageTitle currentPageTitle, List%3CPageTitle%3E suggestedTitles,%0A                                     int clickedIndex) %7B%0A        log(%0A                %22action%22, %22clicked%22,%0A                %22pageTitle%22, currentPageTitle.getDisplayText(),%0A                %22readMoreList%22, TextUtils.join(%22%7C%22, suggestedTitles),%0A                %22readMoreIndex%22, clickedIndex%0A        );%0A    %7D%0A%0A%7D%0A

Add event logging for suggested pages.