Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.sendPageViewEvent()
}
componentDidUpdate(prevProps) {
if (prevProps.runtime.route.path !== this.props.runtime.route.path) {
this.sendPageViewEvent()
}
}
render() {
return null
}
}
export default Pixel(withRuntimeContext(PageViewPixel))
const titleTag = "Order Placed"
return(
this.getData(orderGroupId)}
>
<title>{titleTag}</title>
{React.cloneElement(this.props.children, this.props)}
)
}
}
export default withRuntimeContext(OrderPlacedWrapper)