[ASL_SEARCH category_control=”0″ redirect=”https://zap-zone.com/locations/” bg-color=”#FFFFFF” btn-color=”#FFF000″]

Booking Complete

You should receive a confirmation email within 24 Hours.

If you experience any trouble or have any questions, please give us a call: +1 248.471.6777

				
					// Execute this function on the confirmation booking success page
function onBookingSuccess() {
  // HubSpot API key
  const hubspotApiKey = 'pat-na1-c15f035d-f5ac-4a93-a97b-ba788f874a83';

  // Get contactId and dealId from the URL, assuming they are passed as URL parameters
  const urlParams = new URLSearchParams(window.location.search);
  const contactId = urlParams.get('contactId');
  const dealId = urlParams.get('dealId');

  if (contactId && dealId) {
    // Update deal stage to "success" (Replace 'your-success-deal-stage-id' with your success deal stage ID)
    fetch(`https://api.hubapi.com/deals/v1/deal/${dealId}?hapikey=${hubspotApiKey}`, {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        properties: [
          {
            name: 'dealstage',
            value: 'your-success-deal-stage-id', // Replace with your actual success deal stage ID
          },
        ],
      }),
    })
      .then((response) => {
        if (response.ok) {
          console.log('Deal stage updated successfully');
        } else {
          console.error('Error updating deal stage:', response.statusText);
        }
      })
      .catch((error) => {
        console.error('Error updating deal stage:', error);
      });
  }
}

// Call the function on page load
$(document).ready(onBookingSuccess);

				
			
// add this before event code to all pages where PII data postback is expected and appropriate ttq.identify({ "email": "", // string. The email of the customer if available. It must be hashed with SHA-256 on the client side. "phone_number": "", // string. The phone number of the customer if available. It must be hashed with SHA-256 on the client side. "external_id": "" // string. Any unique identifier, such as loyalty membership IDs, user IDs, and external cookie IDs.It must be hashed with SHA-256 on the client side. }); ttq.track('ViewContent', {}, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('SubmitForm', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('AddToWishlist', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('ClickButton', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('Search', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "", // string. The 4217 currency code. Example: "USD". "query": "" // string. The word or phrase used to search. Example: "SAVE10COUPON". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('Subscribe', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('AddToCart', {}, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('AddPaymentInfo', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('InitiateCheckout', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('Contact', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('Download', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('PlaceAnOrder', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('CompleteRegistration', { "contents": [ { "content_id": "", // string. ID of the product. Example: "1077218". "content_type": "", // string. Either product or product_group. "content_name": "" // string. The name of the page or product. Example: "shirt". } ], "value": "", // number. Value of the order or items sold. Example: 100. "currency": "" // string. The 4217 currency code. Example: "USD". }, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". }); ttq.track('CompletePayment', {}, { "event_id": "" // string. A hashed ID that can identify a unique event. Example: "1616318632825_357". });