This page lists all possible tracking events for which a tracking extension can register. Each event has a short description and an example of the data format required. To learn more, refer to the Shopgate tutorial on integrating a tracking provider .
General
openDeepLink
openPushNotification
setCampaignWithUrl
pageview
viewContent
search
variantSelected
addToCart
loginSuccess
loginFailed
initiatedCheckout
purchase
Every event is called with four parameters (data, rawData, scope, state).
this . register . eventName ( ( data , rawData , scope , state ) => {
Parameter
Type
Description
data
Object
Preformatted event data.
rawData
Object
The raw, not preformatted event data.
scope
Object
Information about the event is supposed to be used by Shopgate internally only.
state
Object
The complete redux state of the application at the time the event is triggered. Can be used to get additional data not included in data/rawData.
The openDeepLink event is triggered when the app opens from a deeplink.
Key
Description
eventAction
URL of the deeplink.
eventLabel
Indicates if the link comes from the spotlight search in iOS.
eventAction : " testapp://category/123 " ,
eventAction : " testapp://category/123 " ,
The openPushNotification event is triggered when the app opens from a push notification.
Key
Description
eventLabel
The notification ID.
The setCampaignWithUrl event is triggered when the app opens from a deeplink or a push notification.
Key
Description
url
URL of the deeplink or push notification.
type
“push_message” or “deeplink”
[notificationId]
The push notification ID. Only set for push.
url : 'testapp: //category/123',
The pageview event is triggered when any page is shown to the user.
Key
Description
link
The page URL. https://rapid.shopgate.com/sg_app_resources/{shopNumber}/{name}/{params}
name
Internal page name.
link : " https://rapid.shopgate.com/sg_app_resources/30694/item/123 " ,
Key
Description
merchantUrl
Exact page identifier.
shopgateUrl
Identifier for Shopgate.
The viewContent event is triggered when a product page is shown.
Key
Description
uid
Product ID
name
Product name
manufacturer
Product manufacturer
amount
Object with price information
amount.currency
Currency code (ISO 4217)
amount.gross
Gross price
amount.net
Net price
amount.striked
Strike price
tags
Array with product tags
manufacturer : " mcRonalds " ,
Key
Description
id
Product ID
type
Always “product”
name
Always “productDetails”
The search event is triggered when a search is performed.
Key
Description
query
The search query.
resultCount
Number of hits for the query.
Key
Description
query
Product ID
hits
Always “product”
success
Indicates if search results were found.
type
Always “product”
The variantSelected event is triggered when a product variant gets selected. For example, “T-shirt size: L”.
Key
Description
variant
Object with information about the selected product variant.
baseProduct
Object with information about the base product.
The addToCart event is triggered when a product is added to the cart.
Key
Description
products
Array with products added to the cart
products[].uid
Prduct ID
products[].name
Prduct name
products[].manufacturer
Product manufacturer
products[].quantity
Quantity
products[].amount
Object with price information
products[].amount.currency
Currency code (ISO 4217)
products[].amount.gross
Gross price
products[].amount.net
Net price
products[].amount.striked
Striked price
The loginSuccess event is triggered when a user has successfully logged in.
Key
Description
id
User ID
mail
User email address
firstName
First name
lastName
Last name
gender
Gender (male or female)
birthday
Date of birth
phone
Phone number
customerGroups
Array with customer groups
addresses
Array with addresses of the user
id : " 87ddbbdb-5b09-4dc4-b1b0-214f4b0fdaa1 " ,
mail : " developer@shopgate.com " ,
phone : " +1-800-490-2467 " ,
street1 : " 804 Congress Ave. " ,
phone : " +1-800-490-2467 " ,
The loginFailed event is triggered when the login of a user failed. It does not receive any data.
The initiatedCheckout event is triggered when the user enters the checkout.
Key
Description
cart
Object with information about the cart
cart.amount
Object with price information
cart.amount.currency
Currency code (ISO 4217)
cart.amount.gross
Gross price of the complete cart
cart.productsCount
Number of items in the cart
cart.products[].uid
Prduct ID
cart.products[].name
Product name
cart.products[].quantity
Quantity
cart.products[].amount
Object with price information
cart.products[].amount.gross
Gross price
name : " Seattle Mariners " ,
Key
Description
currency
Currency code (ISO 4217)
valueGross
Gross price of the complete cart
valueNet
Not available
type
Information about express checkout
paymentInfoAvailable
Indicates if the payment method is known. For example, PayPal Express.
paymentInfoAvailable : false ,
The purchase is triggered when an order was successfully placed and the user is redirected to the order confirmation page.
Key
Description
number
Unique order identifier
currency
Currency of the order
totals
Array of order totals
totals[].type
Total type (shipping, tax or grandTotal)
totals[].amount
Total amount with tax
products
Array of order items
products[].id
Product ID of the product or coupon code
products[].name
Product name
products[].price.withTax
Product gross price
products[].price.net
Item net price
products[].quantity
Item quantity
amount : 12.44 // includes shipping tax, coupon tax and product tax
name : " Seattle Mariners " ,
Key
Description
id
Unique order identifier
currency
Currency of the order
items
Array of order items
items[].type
Item type. It can be product or coupon.
items[].id
Product ID of the product or coupon code
items[].name
Product name
items[].priceGross
Product gross price
items[].priceNet
Item net price
items[].quantity
Item quantity
revenueGross
Total gross revenue of the order
revenueNet
Total net revenue of the order
shippingGross
Gross amount of shipping
shippingNet
Net amount of shipping
tax
Amount of tax
name : " Seattle Mariners " ,