View difference between Paste ID: NpiSGMmr and HjTtuxpJ
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event when the user clicks on a link in the main footer section of the page. Do not push this event when the user clicks on the social media profile links.
1+
//Push this dataLayer event when the user clicks on a location address on the locations page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'footer_click',
6+
 'event': 'locations_address_click',
7-
 'menu_name': 'helpful links',  //Section of the page where the event happened.
7+
 'location_id': 'cameron 1',  //ID of the location.
8-
 'click_element': 'customer support',  //Text or description of the element that was clicked on.
8+
 'ui_element_name': 'address card',  //The name of the UI element from the Zeplin file.
9-
 'ui_element_name': '<ui_element_name>',  //The name of the UI element from the Zeplin file.
9+
 'ui_element_category': 'card'  //The category of the UI element.
10-
 'ui_element_category': 'footer'  //The category of the UI element.
10+
11
</script>