Closed (fixed)
Project:
Google Analytics
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2019 at 14:08 UTC
Updated:
1 Oct 2021 at 18:24 UTC
Jump to comment: Most recent
Comments
Comment #2
gaurav.bajpai commentedHi,
I am facing similar issue with current dev version 8.3.x, so is there any plan to use method gtag instead ga?
The custom events are working with method gtag.
Comment #3
andyrigby commentedHi,
In the 3.x version of the module the gtag library is used. You should be able to create events from custom javascript: https://developers.google.com/analytics/devguides/collection/gtagjs/events
If this doesn't answer your question please could you expand a little on the issue you are seeing?
Thanks,
Andy.
Comment #4
japerryYup, you can implement your own JS or use the events system in the 4.x version to do it in php code:
See below as an example.
https://git.drupalcode.org/project/google_analytics/-/blob/4.x/src/Event...