Anyone have any recommendations on how to add GA click Event tracking #453
-
I thought I could add something like to the main.js, but I can't get my build to complete because I keep getting 'error 'ga' is not defined no-undef' I looked into adding it as a new bind() event to the scripts.js for FeaturedGoogleAnalytics, but I wasn't able to get that to work either. Should I add some sort of config to the build-config.js to allow this to pass or does anyone know if there a better way to do this? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@munts you can define ga as global, as did inside FeatureAdminComponentScreenshots to prevent this error. But you should be sure that ga will be loaded before and is available before the click function run. |
Beta Was this translation helpful? Give feedback.
@munts you can define ga as global, as did inside FeatureAdminComponentScreenshots to prevent this error. But you should be sure that ga will be loaded before and is available before the click function run.