checkout_ contact_ info_ submittedinterface
interface
The event logs an instance where a customer submits a checkout form. This event is only available in checkouts where Checkout Extensibility for customizations is enabled
Anchor to propertiesProperties
Anchor to clientId
clientId
string
The client-side ID of the customer, provided by Shopify
Anchor to context
context
Anchor to data
data
string
The ID of the customer event
Anchor to name
name
string
The name of the customer event
number
The sequence index number of the event.
Anchor to timestamp
timestamp
string
The timestamp of when the customer event occurred, in ISO 8601 format
Anchor to type
type
.Standard
Was this section helpful?
Accessing Standard Events
import {register} from '@shopify/web-pixels-extension';
register(({analytics}) => {
analytics.subscribe('checkout_contact_info_submitted', (event) => {
// Example for accessing event data
const checkout = event.data.checkout;
const email = checkout.email;
const phone = checkout.phone;
const payload = {
event_name: event.name,
event_data: {
email: email,
phone: phone,
},
};
// Example for sending event data to third party servers
fetch('https://example.com/pixel', {
method: 'POST',
body: JSON.stringify(payload),
keepalive: true,
});
});
});