View difference between Paste ID: TkKi8WhF and aV0LBk0U
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event on every page before Google Tag Manager loads.
1+
//Push this dataLayer event when a user clicks on a catalogue link. 
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'user_info',
6+
 'event': 'view_catalogue_click',
7-
 'user_id': '564363463456',  //Unique user ID of a registered user from the website's database.
7+
 'cd_file_name': 'Food Service Solutions',  //Name of the catalogue that was clicked.
8-
 'login_status': 'logged in',  //If the user is logged in or not.
8+
 'cd_event_label': 'For Professionals',  //The type of the calaogue. For Professionals or For Retailers.
9-
 'sap_outbound_id': 'asdf2314512',  //TBD
9+
 'cd_click_url': 'publications.duni.com/International/2023/foodservice/'  //URL of the catalogue that was clicked.
10-
 'customer_industry': 'restaurants',  //industry variable
10+
11-
 'customer_type': 'wholesaler'  //wholesaler or end user
11+