SHOW:
|
|
- or go back to the newest paste.
| 1 | - | // Fire this dataLayer event when a user invites a new member. |
| 1 | + | // Fire this dataLayer event when a user successfully submits the customer support form. This form is on the /customersupport page but it is also on seller pages and product pages. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'invite_member' |
| 6 | + | 'event': 'form_submission', |
| 7 | 'formName': 'customer_support', | |
| 8 | 'formLocation': 'product_page', // Variable value based on where the form was submitted. This form is on the /customersupport page but it is also on seller pages and product pages. | |
| 9 | 'natureOfRequest': 'Order Specific Question' // Variable value based on what user chooses when submitting the form. | |
| 10 | }); | |
| 11 | </script> |