Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Woo Analytics: use core WP function to enqueue script
Related: #13039 For third-parties to be able to interact with our tracking script, it is easier if it is registered using core WP functions instead of just added to wp_head. Using wp_enqueue_script makes it easier to dequeue the file if needed, or modify its output with the script_loader_tag filter (one could add an async parameter for example, or add extra data attributes like the Cookiebot plugin.
- Loading branch information