diff --git a/packages/marko-web-native-x/README.md b/packages/marko-web-native-x/README.md index 8734ef694..0f3cfa04a 100644 --- a/packages/marko-web-native-x/README.md +++ b/packages/marko-web-native-x/README.md @@ -224,7 +224,7 @@ import { endOfContent } from "@parameter1/base-cms-marko-web-native-x/utils/gtm- export default { created() { - endOfContent(window); + endOfContent(); } }; </script> diff --git a/packages/marko-web-native-x/browser/track-end-of-content.vue b/packages/marko-web-native-x/browser/track-end-of-content.vue index a07427ea8..92c7613ea 100644 --- a/packages/marko-web-native-x/browser/track-end-of-content.vue +++ b/packages/marko-web-native-x/browser/track-end-of-content.vue @@ -9,7 +9,7 @@ export default { created() { this.observer = new IntersectionObserver((event) => { if (event[0].isIntersecting) { - endOfContent(window); + endOfContent(); } }); }, diff --git a/packages/marko-web-native-x/browser/track-outbound-links.vue b/packages/marko-web-native-x/browser/track-outbound-links.vue index 0e5b7c36c..b10680583 100644 --- a/packages/marko-web-native-x/browser/track-outbound-links.vue +++ b/packages/marko-web-native-x/browser/track-outbound-links.vue @@ -18,7 +18,7 @@ export default { const url = element.getAttribute('href'); element.addEventListener('click', (e) => { e.preventDefault(); - outboundLink(window, url); + outboundLink(url); }); }); }, diff --git a/packages/marko-web-native-x/browser/track-social-share.vue b/packages/marko-web-native-x/browser/track-social-share.vue index bb5e2617f..ed4d79886 100644 --- a/packages/marko-web-native-x/browser/track-social-share.vue +++ b/packages/marko-web-native-x/browser/track-social-share.vue @@ -17,7 +17,7 @@ export default { created() { this.EventBus.$on(this.eventName, (event) => { const provider = get(event, 'provider.name'); - share(window, provider); + share(provider); }); }, };