CCMAndrei

slk - booking

May 26th, 2022 (edited)
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. window.dataLayer = window.dataLayer || [];
  3. window.dataLayer.push({
  4.  'event': 'booking',
  5.  'clinicLocation': clinic_location          //add clinic location here
  6.  'booking': booking                         //add service category booked here
  7.  'categorySummary': category_summary        //add sub category booked here
  8.  'bookingCode': booking_code                //add booking confirmation here
  9.  'existingCustomer': existing_customer      //add 1 for yes, 0 for no here
  10.  });
  11. </script>
  12.  
  13.  
  14. This is what should show:
  15.  
  16. event: 'online booking'
  17. clinicLocation: 'bundaberg'                                 //location booking for
  18. booking: [
  19.     {
  20.         name: 'Underarms',                                  //sub-cateogry product
  21.         category: 'Laser Hair Removal'                      //primary category product
  22.         unfiltered_name: 'Underarms (Laser Hair Removal)'  //this was the output and Alan, split it up like above
  23.     },
  24.     ],
  25.     category_summary: ['Laser Hair Removal'],
  26.     booking_codes:  [4438781]                               //this is the booking reference number
Add Comment
Please, Sign In to add comment