@adobe/reactor-extension-meta-pixel
Version:
Adobe Launch client side extension that uses the Meta Pixel library to send website data to Meta
1,080 lines (1,079 loc) • 28.5 kB
JSON
{
"name": "facebook-pixel",
"version": "1.3.2",
"description": "The Meta pixel is an analytics tool that allows you to measure the effectiveness of your advertising by understanding the actions people take on your website.",
"displayName": "Meta Pixel",
"iconPath": "resources/icons/meta.svg",
"platform": "web",
"exchangeUrl": "https://exchange.adobe.com/apps/ec/109167/meta-pixel",
"author": {
"name": "Adobe",
"url": "http://adobe.com",
"email": "customercare@adobe.com"
},
"configuration": {
"viewPath": "configuration/configuration.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pixelId": {
"type": "string",
"minLength": 1
},
"eventId": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["pixelId"]
}
},
"actions": [
{
"name": "send-page-view",
"displayName": "Send Page View",
"libPath": "src/lib/actions/sendPageView.js",
"schema": {}
},
{
"name": "send-initiate-checkout-event",
"displayName": "Send Initiate Checkout Event",
"libPath": "src/lib/actions/sendInitiateCheckoutEvent.js",
"viewPath": "actions/sendInitiateCheckoutEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_category": {
"type": "string",
"minLength": 1
},
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
{
"type": "string",
"minLength": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"pattern": "^%([^%]+)%$"
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minLength": 1
}
]
},
"currency": {
"type": "string",
"minLength": 1
},
"num_items": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-add-payment-info-event",
"displayName": "Send Add Payment Info Event",
"libPath": "src/lib/actions/sendAddPaymentInfoEvent.js",
"viewPath": "actions/sendAddPaymentInfoEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_category": {
"type": "string",
"minLength": 1
},
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minItems": 1
}
]
}
},
{
"type": "string",
"minItems": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minItems": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minItems": 1
}
]
},
"currency": {
"type": "string",
"minItems": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minItems": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-search-event",
"displayName": "Send Search Event",
"libPath": "src/lib/actions/sendSearchEvent.js",
"viewPath": "actions/sendSearchEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_category": {
"type": "string",
"minLength": 1
},
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minItems": 1
}
]
}
},
{
"type": "string",
"minItems": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minItems": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minItems": 1
}
]
},
"currency": {
"type": "string",
"minItems": 1
},
"searchString": {
"type": "string",
"minLength": 1
},
"search_string": {
"type": "string",
"minLength": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minItems": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-view-content-event",
"displayName": "Send View Content Event",
"libPath": "src/lib/actions/sendViewContentEvent.js",
"viewPath": "actions/sendViewContentEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_category": {
"type": "string",
"minLength": 1
},
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
{
"type": "string",
"minLength": 1
}
]
},
"content_name": {
"type": "string",
"minLength": 1
},
"content_type": {
"anyOf": [
{
"enum": ["product", "product_group"]
},
{
"type": "string",
"minLength": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minLength": 1
}
]
},
"currency": {
"type": "string",
"minLength": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-add-to-cart-event",
"displayName": "Send Add To Cart Event",
"libPath": "src/lib/actions/sendAddToCartEvent.js",
"viewPath": "actions/sendAddToCartEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
{
"type": "string",
"minLength": 1
}
]
},
"content_name": {
"type": "string",
"minLength": 1
},
"content_type": {
"anyOf": [
{
"enum": ["product", "product_group"]
},
{
"type": "string",
"minLength": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minLength": 1
}
]
},
"currency": {
"type": "string",
"minLength": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "add-to-wishlist-event",
"displayName": "Send Add To Wishlist Event",
"libPath": "src/lib/actions/sendAddToWishlistEvent.js",
"viewPath": "actions/sendAddToWishlistEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
{
"type": "string",
"minLength": 1
}
]
},
"content_name": {
"type": "string",
"minLength": 1
},
"content_category": {
"type": "string",
"minLength": 1
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minLength": 1
}
]
},
"currency": {
"type": "string",
"minLength": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-purchase-event",
"displayName": "Send Purchase Event",
"libPath": "src/lib/actions/sendPurchaseEvent.js",
"viewPath": "actions/sendPurchaseEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_ids": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
}
},
{
"type": "string",
"minLength": 1
}
]
},
"content_name": {
"type": "string",
"minLength": 1
},
"content_type": {
"anyOf": [
{
"enum": ["product", "product_group"]
},
{
"type": "string",
"minLength": 1
}
]
},
"contents": {
"oneOf": [
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"quantity": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "number"
}
]
}
},
"required": ["id", "quantity"],
"additionalProperties": false
}
},
{
"type": "string",
"minLength": 1
}
]
},
"currency": {
"type": "string",
"minLength": 1
},
"num_items": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-lead-event",
"displayName": "Send Lead Event",
"libPath": "src/lib/actions/sendLeadEvent.js",
"viewPath": "actions/sendLeadEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_name": {
"type": "string",
"minLength": 1
},
"content_category": {
"type": "string",
"minLength": 1
},
"currency": {
"type": "string",
"minLength": 1
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-complete-registration-event",
"displayName": "Send Complete Registration Event",
"libPath": "src/lib/actions/sendCompleteRegistrationEvent.js",
"viewPath": "actions/sendCompleteRegistrationEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content_name": {
"type": "string",
"minLength": 1
},
"currency": {
"type": "string",
"minLength": 1
},
"status": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string",
"minLength": 1
}
]
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-contact-event",
"displayName": "Send Contact Event",
"viewPath": "actions/sendContactEvent.html",
"libPath": "src/lib/actions/sendContactEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-customize-product-event",
"displayName": "Send Customize Product Event",
"viewPath": "actions/sendCustomizeProductEvent.html",
"libPath": "src/lib/actions/sendCustomizeProductEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-donate-event",
"displayName": "Send Donate Event",
"viewPath": "actions/sendDonateEvent.html",
"libPath": "src/lib/actions/sendDonateEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-find-location-event",
"displayName": "Send Find Location Event",
"viewPath": "actions/sendFindLocationEvent.html",
"libPath": "src/lib/actions/sendFindLocationEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-schedule-event",
"displayName": "Send Schedule Event",
"viewPath": "actions/sendScheduleEvent.html",
"libPath": "src/lib/actions/sendScheduleEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-start-trial-event",
"displayName": "Send Start Trial Event",
"libPath": "src/lib/actions/sendStartTrialEvent.js",
"viewPath": "actions/sendStartTrialEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 1
},
"predicted_ltv": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-submit-application-event",
"displayName": "Send Submit Application Event",
"viewPath": "actions/sendSubmitApplicationEvent.html",
"libPath": "src/lib/actions/sendSubmitApplicationEvent.js",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-subscribe-event",
"displayName": "Send Subscribe Event",
"libPath": "src/lib/actions/sendSubscribeEvent.js",
"viewPath": "actions/sendSubscribeEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 1
},
"predicted_ltv": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"minLength": 1
}
]
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
{
"name": "send-custom-event",
"displayName": "Send Custom Event",
"libPath": "src/lib/actions/sendCustomEvent.js",
"viewPath": "actions/sendCustomEvent.html",
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"parameters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"value": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": ["key", "value"]
},
"minItems": 1
},
"event_id": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": ["name"]
}
}
],
"viewBasePath": "dist/"
}