Add JS dependency for wp_enqueue_script()
-
Hello
I really enjoy using your plugin. I have a question related to some custom code that I have added for reporting a custom event to Google Analytics.I am using the ga(“send”, “event”, ….) call for reporting the event to GA. However, I do not want to send this event when the Google Analytics Tracker code is not present.
When my code is called on a page that does not have google analytics code, it errors out. Is there a way I can specify a dependency in my call to wp_enqueue_script() ?
Thanks!
https://www.ads-software.com/plugins/google-analytics-for-wordpress/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add JS dependency for wp_enqueue_script()’ is closed to new replies.