Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($, Drupal, settings) {
- "use strict";
- Drupal.behaviors.housingActionContact = {
- attach: function (context) {
- var button = $(".house-action-phones");
- var housingId = button.data('housing');
- var goalParams =
- {
- housingId: housingId,
- action: 'phones'
- };
- function goalCallback () {
- console.log(goalParams);
- }
- button.once('hous-contact-behaviors').on('click', function () {
- yaCounter45769347.reachGoal('housing_contact_action', goalParams, goalCallback);
- });
- }
- };
- Drupal.behaviors.housingActionOrder = {
- attach: function (context) {
- var button = $(".house-action-order");
- var housingId = button.data('housing');
- var goalParams =
- {
- housingId: housingId,
- action: 'order'
- };
- function goalCallback () {
- console.log(goalParams);
- ga('set', 'dimension1', housingId);
- }
- button.once('hous-order-behaviors').on('click', function () {
- yaCounter45769347.reachGoal('housing_order_action', goalParams, goalCallback);
- });
- }
- }
- })(jQuery, Drupal, drupalSettings);
Add Comment
Please, Sign In to add comment