Skip to content

Commit

Permalink
Added analytics to quickreference menu
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Apr 2, 2024
1 parent e646998 commit 7035fb8
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import LayerRecordComponent from './-base';

export default class ZoningDistrictLongDescription extends LayerRecordComponent {
@tracked primaryZoneOverride;

@service metrics;

@action
setZone(newZone) {
this.set('primaryZoneOverride', newZone);

gtag('event', 'quick_reference', {
event_category: 'Quick Reference Menu Click',
event_action: `${newZone}`,
});

this.metrics.trackEvent('MatomoTagManager', {
category: 'Quick Reference Menu Click',
action: `${newZone}`,
name: `Quick Reference Menu Click ${newZone}`,
});
}

zones = {
Expand Down

0 comments on commit 7035fb8

Please sign in to comment.