Skip to content

Commit

Permalink
Merge pull request #768 from egauzens/test-data-layer-push
Browse files Browse the repository at this point in the history
testing datalayer push
  • Loading branch information
egauzens committed Nov 16, 2023
2 parents 167400c + 257d800 commit bc034f8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pages/datasets/_datasetId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,10 @@ export default {
mounted() {
this.$gtm.push({
event: 'interaction_event',
event_name: 'dataset_page_view',
dataset_id: propOr(this.$route.params.datasetId, 'id', this.datasetInfo),
version_id: propOr('undefined', 'version', this.datasetInfo),
doi: propOr('undefined', 'doi', this.datasetInfo)
})
this.$nextTick(() => {
window['google_tag_manager'][`${process.env.GOOGLE_TAG_MANAGER_ID}`].dataLayer.reset()
})
},
computed: {
Expand Down

0 comments on commit bc034f8

Please sign in to comment.