XD\SilverStripeFacebookServerSidePixel\Client\Client
Synopsis
class Client
{
- // members
- private static boolean $send_member_data = false;
- protected array $events = ;
- // methods
- public void __construct()
- public void createEvent()
- public void addEvent()
- public void sendEvents()
- public void createUserData()
- public void sendPageViewEvent()
- public void sendPurchaseEvent()
- public void sendInitiateCheckoutEvent()
- public void sendAddToCartEvent()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Extensible
Members
private
- $send_member_data
protected
- $events
Methods
public
- __construct() — Init the facebook api
- addEvent()
- createEvent() — Add events to send
- createUserData() — Create user data based on the request If a user is logged in use their data (if enabled)
- sendAddToCartEvent() — Default add to cart event Pass the cart items trough the customData prop
- sendEvents() — Send the event list
- sendInitiateCheckoutEvent() — Default checkout event Pass the cart items trough the customData prop
- sendPageViewEvent() — Default page view event
- sendPurchaseEvent() — Default purchase event Pass the bought items trough the customData prop