Skip to content

Commit eceb77f

Browse files
authored
chore(plugin-packer): add custom event (#3527)
1 parent 5951962 commit eceb77f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/plugin-packer/site/action.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ const createPluginZip = (generatePluginZip) => (dispatch, getState) => {
8989
delay(300),
9090
]).then(
9191
([result]) => {
92+
// Send custom event to Google Analytics
93+
if (window.dataLayer) {
94+
window.dataLayer.push({
95+
event: "plugin_packaged",
96+
// plugin_id: result.id,
97+
});
98+
}
9299
dispatch({
93100
type: CREATE_PLUGIN_ZIP,
94101
payload: result,

0 commit comments

Comments
 (0)