-
Notifications
You must be signed in to change notification settings - Fork 799
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 (#13173)
* 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. * Add utility allowing us to load some of our scripts asynchronously See #13173 (comment)
- Loading branch information
1 parent
77c3100
commit d7ddbf3
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters