Last active
December 28, 2018 23:10
-
-
Save michaeljdennis/89f47c407f51c7bedcd1798146e31ed2 to your computer and use it in GitHub Desktop.
Klaviyo Track API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'token' => 'KXZ6gp', | |
'event' => 'Elected President', | |
'customer_properties' => [ | |
'$email' => 'thomas.jefferson@example.com' | |
], | |
'properties' => [ | |
'PreviouslyVicePresident' => true, | |
'YearElected' => 1801, | |
'VicePresidents' => ['Aaron Burr', 'George Clinton'], | |
], | |
'time' => 1546034508, | |
]; | |
echo urlencode(base64_encode(json_encode($data))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment