Open YosefMets opened 1 year ago
@YosefMets Hey bro, maybe u need to use query instead event.
import { query} from 'vue-gtag'
const addToCart = () => { query('event','add_to_cart', {...}); }
I meet the same problem, nothings happened in the GA Events
Update: Now I no longer have this issue
Environment *
npm ls vue-gtag
:vue-gtag@2.0.1
npm ls vue
:vue@3.2.45
Description *
page_view
works. Then I try useevent
in thesetup
:Expected behavior
When I'm adding item to cart nothing's happened in the Googlу Analytics. There is also no new request in the "Network". But in
window.dataLayer
added a new data['event', 'add_to_cart', {…}, ...]
What am I doing wrong?