Skip to content

Instantly share code, notes, and snippets.

@tiagogm
Last active June 15, 2019 09:17
Show Gist options
  • Save tiagogm/09eaf18c81907843608a68608afe0bfd to your computer and use it in GitHub Desktop.
Save tiagogm/09eaf18c81907843608a68608afe0bfd to your computer and use it in GitHub Desktop.
//in on page
window.uetq.push({ 'ec': 'listing', 'ea': 'contacted-host', 'ev': 1 });
_kmq.push(['record', 'contact host', { 'user_id': 'UserId' }]);
//in another page
Scenestealer.trackRequestBooking(`${booking.listingId}`);
utils.addGoogleAnalyticsEvent('listing', 'reques-booking', '', 1);
utils.recordFacebookEvent('track', 'Lead', { content_name: 'request booking', user_id: 'UserId' });
utils.recordFacebookEvent('trackCustom', 'lead',{ action: 'request booking'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment