|
|
@@ -54,7 +54,7 @@ export function useMetaPixel() {
|
|
|
}
|
|
|
|
|
|
// 跟踪自定义事件
|
|
|
- const trackEvent = (eventName: 'Lead' | 'Purchase', parameters?: Record<string, any>) => {
|
|
|
+ const trackEvent = (eventName: 'Lead' | 'Purchase', parameters: Record<string, any> = {}) => {
|
|
|
if (pixelId) {
|
|
|
if (plus.hasPlus()) {
|
|
|
window.plus.bridge.exec('FacebookExpand', 'metaPixelFunction', [eventName, JSON.stringify(parameters)])
|