Event Tracking
planned
S
Stephen Walker
Please add event tracking. Cabin does this in an easy fashion, and this would be a great addition. (see https://docs.withcabin.com/events.html)
A
Allan Noble
I see this one has been marked as "planned" since July 2024. Is this WP plugin being actively developed? Team AnalyticsWP
L
Lee Busch
If it's not documented, it doesn't exist. How can I track clicks now? I need to be able to track and compare/rank buttons and link clicks.
T
Team AnalyticsWP
planned
T
Team AnalyticsWP
AnalyticsWP already has this. It's had this built in since day 1, but we don't yet have public documentation.
AnalyticsWP.pageview() and AnalyticsWP.event('event-name', {properties: 'here'}) both work now.
But, it's still subject to change. We'll eventually have world class developer documentation and tooling around this, trust!
P
Peter Michael
Team AnalyticsWP documentation would be highly appreciated. Also would be awesome if one could set certain API calls that these events can trigger. E.g.: event happening and call to Meta CAPI goes out without having to use GTM, Stape or something else.
Adam
Team AnalyticsWP Great! It works like a charm!
Could you please mark journeys with custom events using a distinct color, similar to how it's done for WooCommerce? Perhaps a violet color, like the one used when viewing journey details?
It seems like a quick feature to implement, and it would be incredibly helpful, especially for Breakdance users. AnalyticsWP already tracks form events, but they aren't easily visible in the journeys section.
S
Simba
Adam This should also be done with form submissions.
L
Laurent Glaesener
Team AnalyticsWP as of now you do have a bit of documentation on this: https://analyticswp.com/developers/
However I'm too stupid to get it going: I have a <script> tag with:
gtag('event', 'view_item', SingleItemEvent);
AnalyticsWP.event('view_item', {
item_id: '',
item_name: '',
item_brand: '',
item_price: ''
});
GA4 is working as excepted. AnalyticsWP isn't, what am I doing wrong?
Thanks for any hint.
Kind regards,
Laurent
L
Laurent Glaesener
Could solve the error. The AnalyticsWP JS script wasn't loaded when I was calling the event.
Putting the view_item event in jQuery(window).on("load", function () { ... }); solved the issue.
But now I get a Pageview AND a View_item event. Is there a way to only have one of these events?