ttq.identify({
"email": "<hashed_email_address>", // string. The email of the customer if available. It must be hashed with SHA-256 on the client side.
"phone_number": "<hashed_phone_number>", // string. The phone number of the customer if available. It must be hashed with SHA-256 on the client side.
"external_id": "<hashed_extenal_id>" // string. A unique ID from the advertiser such as user or external cookie IDs. It must be hashed with SHA256 on the client side.
})
ttq.track('ViewContent', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('ClickButton', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('AddToWishlist', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('Search', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"query": "<search_keywords>" // string. The word or phrase used to search. Example: "SAVE10COUPON".
})
ttq.track('Subscribe', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
]
})
ttq.track('SubmitForm', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
]
})
ttq.track('Contact', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
]
})
ttq.track('Download', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
]
})
ttq.track('AddPaymentInfo', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('AddToCart', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('InitiateCheckout', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('PlaceAnOrder', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('CompleteRegistration', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})
ttq.track('CompletePayment', {
"value": "<content_value>", // number. Value of the order or items sold. Example: 100.
"currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
"contents": [
{
"content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
"content_type": "<content_type>", // string. Either product or product_group.
"content_name": "<content_name>", // string. The name of the page or product. Example: "shirt".
"content_category": "<content_category>", // string. The category of the page or product. Example: "apparel".
"price": "<content_price>", // number. The price of a single item. Example: 25.
"quantity": "<content_quantity>", // number. The number of items. Example: 4.
"brand": "<brand>" // string. The brand name of the page or product. Example: "Nike"
}
],
"description": "<content_description>", // string. The description of the item or page. Example: "light weight cotton". // string. Non-hashed public IP address of the browser.
"status": "<content_status>" // string. The status of an order, item, or service. Example: "submitted".
})