Skip to content

Prerequisites

Base URL

http
POST https://{tag.your-domain.com}/mark
Content-Type: application/json
Cookie: _fbp=fbpValue; _fbc=fbcValue; _ttp: ttpValue

Cookies Used on This Website

This table provides information about the cookies used on this website.

Cookie NameDescriptionRequired
_fbpWhen the Meta Pixel is installed on a website, and the Pixel uses first-party cookies, the Pixel automatically saves a unique identifier to an _fbp cookie for the website domain if one does not already exist. See here for more information.No
_fbcWhen a user clicks on an ad on Facebook, the link sometimes includes a fbclid query parameter. When the user lands on the target website, if the website has a Meta Pixel that uses first-party cookies, the Pixel automatically saves the fbclid query parameter to an _fbc cookie for that website domain. See here for more information.No
_ttp_To measure and improve the performance of your advertising campaigns and to personalize the user's experience (including ads) on TikTok. See here for more information.No

Request Body

js

{
    "x-cf-ip": IP,  //user ip address
    "x-cf-loc": Location, //user country code
    "pageUrl": PageURL, // page URL from where event triggered
    "event": Event, // event event
    "muid": MUID, //unique identifier of each user
    "mt_ref_src":"", //optional
    //add other body depending on event type
}

INFO

Additional body data needs to be sent depending on the event type

Event Data Fields

This table summarizes the fields included in the event data payload:

Field NameDescriptionRequired
x-cf-ipUser IP addressYes
x-cf-locUser location (country code)Yes
pageUrlPage URL where the event was triggeredYes
eventSpecific event that occurredYes
muidUnique identifier for each userYes
mt_ref_srcOptional referrer sourceNo
Additional Fields (Event Specific)Additional fields specific to the event typeVaries

Note: The "Additional Fields" section will vary depending on the specific event type. Please refer to the documentation for your specific event types to determine the additional fields required or available mentioned below.