Skip to content

Commit e1f3cc3

Browse files
docs: destruct TrackedPage payload (#549)
1 parent 8b0fc60 commit e1f3cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/scripts/tracking/google-tag-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const { proxy } = useScriptGoogleTagManager({
9797
id: 'YOUR_ID' // id is only needed if you haven't configured globally
9898
})
9999

100-
useScriptEventPage((title, path) => {
100+
useScriptEventPage(({ title, path }) => {
101101
// triggered on route change after title is updated
102102
proxy.dataLayer.push({
103103
event: 'pageview',

0 commit comments

Comments
 (0)