@graphcommerce/googleanalytics 6.1.1-canary.4 → 6.2.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +11 -11
- package/plugins/GaViewItem.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.2.0-canary.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1915](https://github.com/graphcommerce-org/graphcommerce/pull/1915) [`4c8d6fc73`](https://github.com/graphcommerce-org/graphcommerce/commit/4c8d6fc734a83b9ffa078abf10b26c65e49f4940) - GaViewItem would still be enabled even when googleAnalyticsId was enabled ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 6.1.1-canary.5
|
|
10
|
+
|
|
3
11
|
## 6.1.1-canary.4
|
|
4
12
|
|
|
5
13
|
## 6.1.1-canary.3
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/googleanalytics",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.2.0-canary.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@graphcommerce/graphql-mesh": "6.
|
|
16
|
-
"@graphcommerce/magento-cart": "6.
|
|
17
|
-
"@graphcommerce/magento-cart-payment-method": "6.
|
|
18
|
-
"@graphcommerce/magento-cart-shipping-method": "6.
|
|
19
|
-
"@graphcommerce/magento-product": "6.
|
|
20
|
-
"@graphcommerce/next-config": "6.
|
|
21
|
-
"@graphcommerce/next-ui": "6.
|
|
15
|
+
"@graphcommerce/graphql-mesh": "6.2.0-canary.6",
|
|
16
|
+
"@graphcommerce/magento-cart": "6.2.0-canary.6",
|
|
17
|
+
"@graphcommerce/magento-cart-payment-method": "6.2.0-canary.6",
|
|
18
|
+
"@graphcommerce/magento-cart-shipping-method": "6.2.0-canary.6",
|
|
19
|
+
"@graphcommerce/magento-product": "6.2.0-canary.6",
|
|
20
|
+
"@graphcommerce/next-config": "6.2.0-canary.6",
|
|
21
|
+
"@graphcommerce/next-ui": "6.2.0-canary.6"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@graphcommerce/eslint-config-pwa": "6.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "6.
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "6.
|
|
24
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.6",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.6",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.6",
|
|
27
27
|
"@types/gtag.js": "^0.0.12"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
package/plugins/GaViewItem.tsx
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ProductPageMetaFragment } from '@graphcommerce/magento-product/components/ProductPageMeta/ProductPageMeta.gql'
|
|
2
|
-
import { PluginProps } from '@graphcommerce/next-config'
|
|
2
|
+
import { IfConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { useMemoObject } from '@graphcommerce/next-ui'
|
|
4
4
|
import { useEffect } from 'react'
|
|
5
5
|
import { productToGtagItem } from '../events/productToGtagItem/productToGtagItem'
|
|
6
6
|
|
|
7
7
|
export const component = 'ProductPageMeta'
|
|
8
8
|
export const exported = '@graphcommerce/magento-product'
|
|
9
|
+
export const ifConfig: IfConfig = 'googleAnalyticsId'
|
|
9
10
|
|
|
10
11
|
/** When a product is added to the Cart, send a Google Analytics event */
|
|
11
12
|
function GaViewItem(props: PluginProps<ProductPageMetaFragment>) {
|