Facebook Analytics allowed us to track how users interacted with our website by capturing specific events, such as clicking on the WhatsApp button or image. This functionality required the manual installation of the Facebook SDK for JavaScript, as the plugin itself does not install Facebook Analytics.
Note: This feature has been deprecated since version 2.4.
Starting from version 2.8, we recommend using Facebook Pixel instead for tracking events.
Event Tracking Details
When enabled and properly configured, the plugin triggered a custom event in Facebook Analytics when a user clicked on the WhatsApp button or image. The event included the following parameters:
- Event Name:
Click to Chat for WhatsApp
Parameters:
- Category
- Name:
Category
- Value:
Click to Chat for WhatsApp
- Name:
- Action
- Name:
Action
- Value: Based on the return type:
- For Chat:
Return Type: Chat
- For Group:
Return Type: Group
- For Share:
Return Type: Share
- For Chat:
- Name:
- Label
- Name:
Label
- Value:
{{post-title}} {{url}}
- These placeholders dynamically pull in the current post title and the page URL where the click occurred.
- Name:
Important Notes
- The plugin does not include Facebook Analytics by default.
- Ensure that Facebook Analytics is integrated into the website using the Facebook SDK for JavaScript before enabling this feature.
- As Facebook has discontinued Facebook Analytics, we recommend switching to Facebook Pixel for event tracking.