klaviyo / php-klaviyo

PHP wrapper for the Klaviyo API
59 stars 47 forks source link

How can track multiple products #7

Closed syammohanmp closed 3 years ago

syammohanmp commented 6 years ago

I have to tract multiple product purchase to Klaviyo. given example with only one SKU.

$tracker = new Klaviyo("YOUR_TOKEN");
$tracker->track(
    'Purchased item',
    array('$email' => 'someone@example.com', '$first_name' => 'Bill', '$last_name' => 'Shakespeare'),
    array('Item SKU' => 'ABC123', 'Payment Method' => 'Credit Card'),
    1354913220
);

I have multiple SKU with single order. How can I achieve this ?

Daniel-pak commented 6 years ago

Having this issue as well.

remstone7 commented 3 years ago

closing out but you have to do 1 product at time for an "item" event