View difference between Paste ID: KXudsQa2 and dP8v4L8P
SHOW: | | - or go back to the newest paste.
1-
// Fire this dataLayer event when the user clicks the "Continue" button and proceeds from picking a phone number. 
1+
// Fire this dataLayer event when the user successfully applies a coupon.
2
3
window.dataLayer = window.dataLayer || [];
4
  window.dataLayer.push({
5-
   'event': 'number_selected',
5+
   'event': 'coupon_applied',
6
   'process': 'rnw',  // Variable value. ID/name of the selected process.
7-
   'number_type': 'assigned number'  // Variable value. Which type of phone number user selected - assigned number, favorite number, previous number
7+
   'coupon': 'coupon name'  // Variable value. Name of the coupon.
8
});