To add any of the following events please add them INSIDE of this green line of code commented line. By default "PageView" is already added.
All events must be added inside of the <HEAD> section of your website.
Setting up Custom Events
Page View (default)
This is the default pixel tracking method, included by default in the Visitor Edge script given to you. Tracks anyone that visits your website.
Available as 1st Party or 3rd Party
edgetag('tag', 'PageView')
ViewContent
A visit to a web page you care about (for example, a product page or landing page). ViewContent tells you if someone visits a web page's URL, but not what they see or do on that page.
Available as 1st Party or 3rd Party
edgetag('tag', 'ViewContent', {
currency: 'USD',
value: 10.50,
contents: [{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
}]
})
Add To Cart
When a product is added to the shopping cart.
Available as 1st Party or 3rd Party
edgetag('tag', 'AddToCart', {
currency: 'USD',
value: 10.50,
contents: [{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
}],
checkoutUrl: 'http://www.example.com/path/to/checkout'
})
Initiate Checkout
When a person enters the checkout flow prior to completing the checkout flow.
Available as 1st Party or 3rd Party
edgetag('tag', 'InitiateCheckout', {
currency: 'USD',
value: 20.50,
checkoutUrl: 'http://www.yoursite.com/path/to/checkout',
contents: [
{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://yoursite.com/product/fun-main.jpg',
url: 'https://yoursite.com/summer-fun'
},
{
id: '4423434343',
quantity: 2,
item_price: 5,
title: 'Summer Shorts',
category: 'shorts',
image: 'https://yoursite.com/product/shorts-main.jpg',
url: 'https://yoursite.com/summer-shirts'
}
]
})
Add Shipping Info
When user has submitted their shipping information.
Available as 1st Party or 3rd Party
edgetag('tag', 'AddShippingInfo', {
currency: 'USD',
value: 20.50,
contents: [
{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
},
{
id: '4423434343',
quantity: 2,
item_price: 5,
title: 'Summer Shorts',
category: 'shorts',
image: 'https://mysite.com/product/shorts-main.jpg',
url: 'https://mysite.com/summer-shorts'
}
]
})
Add Payment Info
When payment information is added to the checkout flow.
Available as 1st Party or 3rd Party
edgetag('tag', 'AddPaymentInfo', {
currency: 'USD',
value: 20.50,
contents: [
{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
},
{
id: '4423434343',
quantity: 2,
item_price: 5,
title: 'Summer Shorts',
category: 'shorts',
image: 'https://mysite.com/product/shorts-main.jpg',
url: 'https://mysite.com/summer-shorts'
}
]
})
Purchase
When a purchase is made or checkout flow is completed.
Available as 1st Party
edgetag('tag', 'Purchase', {
currency: 'USD',
value: 20.50,
orderId: '190315',
eventId: '190315',
discounts: [
{
code: 'OFF20',
value: '20',
type: 'PERCENTAGE'
},
{
code: 'BONUS150',
value: '150',
type: ''
}
],
contents: [
{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
},
{
id: '4423434343',
quantity: 2,
item_price: 5,
title: 'Summer Shorts',
category: 'shorts',
image: 'https://mysite.com/product/shorts-main.jpg',
url: 'https://mysite.com/summer-shorts'
}
]
})
Subscribe
edgetag('tag', 'Subscribe', {
sourceId: 'Email',
currency: 'USD',
value: 49.99
})
Search
When a search is made.
Available as 1st and 3rd Party
edgetag('tag', 'Search', {
currency: 'USD',
value: 10.50,
search: 'summer',
contents: [{
id: '123123123',
quantity: 1,
item_price: 10.50,
title: 'Summer Fun',
category: 'bracelets',
image: 'https://mysite.com/product/fun-main.jpg',
url: 'https://mysite.com/summer-fun'
}]
})
Lead
When a sign-up is completed, or a person visits a Funnel page.
edgetag('tag', 'Lead', {
category: 'offers',
name: 'Special Offer',
currency: 'USD',
value: 49.99
})