MatteoGabriele / vue-gtag-next

Global Site Tag plugin for Vue 3 (gtag.js)
MIT License
44 stars 3 forks source link

How to enable ga('require', 'displayfeatures'); #25

Open hajkli opened 2 years ago

hajkli commented 2 years ago

Hello,

Is there any way how to enable this funcionality via config with vue gtag? ga('require', 'displayfeatures'); Link to GA documentation https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features

Thank you

colinxr commented 2 years ago

Ran into this same issue today. I believe you can enable this by using the vue-gtag query method.

this.$gtag.query("require", "displayfeatures");

The query method is like using the GA object directly, as described in the docs here: