diff --git a/parsely/src/main/java/com/parsely/parselyandroid/ParselyMetadata.java b/parsely/src/main/java/com/parsely/parselyandroid/ParselyMetadata.java index 805902ab..38f661bd 100644 --- a/parsely/src/main/java/com/parsely/parselyandroid/ParselyMetadata.java +++ b/parsely/src/main/java/com/parsely/parselyandroid/ParselyMetadata.java @@ -30,6 +30,7 @@ public class ParselyMetadata { * @param thumbUrl URL at which the main image for this content is located. * @param title The title of the content. * @param pubDate The date this piece of content was published. + * @param pageType The type of page being tracked. */ public ParselyMetadata( @Nullable ArrayList authors, @@ -38,7 +39,8 @@ public ParselyMetadata( @Nullable ArrayList tags, @Nullable String thumbUrl, @Nullable String title, - @Nullable Calendar pubDate + @Nullable Calendar pubDate, + @Nullable String pageType ) { this.authors = authors; this.link = link; @@ -47,6 +49,7 @@ public ParselyMetadata( this.thumbUrl = thumbUrl; this.title = title; this.pubDate = pubDate; + this.pageType = pageType; } /** @@ -77,6 +80,9 @@ public Map toMap() { if (this.pubDate != null) { output.put("pub_date_tmsp", this.pubDate.getTimeInMillis() / 1000); } + if (this.pageType != null) { + output.put("page_type", this.pageType); + } return output; } }