MCPcopy Create free account
hub / github.com/DavidWells/analytics / pageView

Function pageView

packages/analytics-plugin-google-analytics-v3/src/node.js:87–92  ·  view source on GitHub ↗
({ path, href, title }, client)

Source from the content-addressed store, hash-verified

85}
86
87export function pageView({ path, href, title }, client) {
88 if (!path || !href || !title) {
89 throw new Error('Missing path, href or title in page call for GA')
90 }
91 client.pageview(path, href, title).send()
92}
93
94export function trackEvent({ category, event, label, value, properties }, client, customDimensions) {
95 // Prepare Custom Dimensions to be Reported.

Callers 1

googleAnalyticsFunction · 0.85

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected