@mjhls/mjh-framework 1.0.875-v1customDimension → 1.0.875-v2customDimension
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/dist/cjs/View.js +4 -4
- package/dist/esm/View.js +4 -4
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -1652,7 +1652,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1652
1652
|
if (props.setCustomDimensions) {
|
|
1653
1653
|
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1654
1654
|
}
|
|
1655
|
-
if (props.pageview) props.pageview(newPath, null, pageviewProperties)
|
|
1655
|
+
// if (props.pageview) props.pageview(newPath, null, pageviewProperties)
|
|
1656
1656
|
refreshAD(path);
|
|
1657
1657
|
};
|
|
1658
1658
|
|
|
@@ -1719,16 +1719,16 @@ var View = function View(props) {
|
|
|
1719
1719
|
React.useEffect(function () {
|
|
1720
1720
|
if (pageview && setCustomDimensions) {
|
|
1721
1721
|
var timer = void 0;
|
|
1722
|
-
|
|
1722
|
+
_extends._extends({}, getTargeting.getTargeting(props), {
|
|
1723
1723
|
category: article && article.category ? article.category.name : ''
|
|
1724
1724
|
});
|
|
1725
1725
|
var waitAndExicute = function waitAndExicute() {
|
|
1726
1726
|
if (typeof window.gtag !== 'undefined') {
|
|
1727
1727
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1728
|
-
pageview(router.asPath, null, pageviewProperties)
|
|
1728
|
+
// pageview(router.asPath, null, pageviewProperties)
|
|
1729
1729
|
} else if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1730
1730
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1731
|
-
pageview(router.asPath, null, pageviewProperties)
|
|
1731
|
+
// pageview(router.asPath, null, pageviewProperties)
|
|
1732
1732
|
} else timer = setTimeout(waitAndExicute, 1000);
|
|
1733
1733
|
};
|
|
1734
1734
|
waitAndExicute();
|
package/dist/esm/View.js
CHANGED
|
@@ -1642,7 +1642,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1642
1642
|
if (props.setCustomDimensions) {
|
|
1643
1643
|
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1644
1644
|
}
|
|
1645
|
-
if (props.pageview) props.pageview(newPath, null, pageviewProperties)
|
|
1645
|
+
// if (props.pageview) props.pageview(newPath, null, pageviewProperties)
|
|
1646
1646
|
refreshAD(path);
|
|
1647
1647
|
};
|
|
1648
1648
|
|
|
@@ -1709,16 +1709,16 @@ var View = function View(props) {
|
|
|
1709
1709
|
useEffect(function () {
|
|
1710
1710
|
if (pageview && setCustomDimensions) {
|
|
1711
1711
|
var timer = void 0;
|
|
1712
|
-
|
|
1712
|
+
_extends({}, getTargeting(props), {
|
|
1713
1713
|
category: article && article.category ? article.category.name : ''
|
|
1714
1714
|
});
|
|
1715
1715
|
var waitAndExicute = function waitAndExicute() {
|
|
1716
1716
|
if (typeof window.gtag !== 'undefined') {
|
|
1717
1717
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1718
|
-
pageview(router.asPath, null, pageviewProperties)
|
|
1718
|
+
// pageview(router.asPath, null, pageviewProperties)
|
|
1719
1719
|
} else if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1720
1720
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1721
|
-
pageview(router.asPath, null, pageviewProperties)
|
|
1721
|
+
// pageview(router.asPath, null, pageviewProperties)
|
|
1722
1722
|
} else timer = setTimeout(waitAndExicute, 1000);
|
|
1723
1723
|
};
|
|
1724
1724
|
waitAndExicute();
|