Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Web Activities

Mathieu Pillard edited this page Oct 30, 2015 · 7 revisions

The Marketplace can interact with outside apps through Web Activities. The supported activities are documented below:

Supported Web Activities

marketplace-app

Launch the Marketplace at an app's detail page.

By slug:

var activity = new MozActivity({
  name: "marketplace-app",
  data: {slug: "the-slug-of-the-app", src: "the-name-of-the-referrer"}
});

By manifest URL:

var activity = new MozActivity({
  name: "marketplace-app",
  data: {manifest_url: "http://the-domain-of-the-app/manifest.webapp", src: "e.me"}
});

marketplace-app-rating

Launch the Marketplace at an app's ratings listing page.

var activity = new MozActivity({
  name: "marketplace-app-rating",
  data: {slug: "the-slug-of-the-app"}
});

marketplace-category

Launch the Marketplace at a category listing

var activity = new MozActivity({
  name: "marketplace-category",
  data: {slug: "the-slug-of-the-category"}
});

marketplace-search

Launch the Marketplace and initiate a search for a query.

var activity = new MozActivity({
  name: "marketplace-search",
  data: {query: "the search query"}
});

marketplace-addon

Launch the Marketplace at an addon's detail page.

By slug:

var activity = new MozActivity({
  name: "marketplace-addon",
  data: {slug: "the-slug-of-the-addon", src: "the-name-of-the-referrer"}
});

marketplace-website

Launch the Marketplace at an website's detail page.

By id:

var activity = new MozActivity({
  name: "marketplace-website",
  data: {id: 4815162342, src: "the-name-of-the-referrer"}
});