¿Puedo preguntar cómo realizar un seguimiento del evento específico con el código ActiveCampaign de seguimiento de eventos? Por ejemplo, si quiero rastrear a la persona que hace clic en el botón en el sitio web de Wordpress y el evento de clic en el botón aparecerá en la actividad de esa persona. ¿Cómo agrego en este código de muestra php aquí?
<?php // Set up an object instance using our PHP API wrapper. define( "ACTIVECAMPAIGN_URL", "URL" ); define( "ACTIVECAMPAIGN_API_KEY", "KEY" ); require_once( "C:\\xampp\htdocs\\Tracking\\activecampaign-api-php-master\\includes\\ActiveCampaign.class.php" ); $ac = new ActiveCampaign( ACTIVECAMPAIGN_URL, ACTIVECAMPAIGN_API_KEY ); $ac->track_actid = "actid"; // your unique tracking account ID (found on the Integrations page). $ac->track_key = "key"; // your unique event key (found on the Integrations page). $ac->track_email = "email"; // (optional) contact email address to associate the event with. $post_data = array( "event" => "event", "eventdata" => "event_data", // any extra (optional) visit data to include? "visit" => array( //"url" => "", //"referrer" => "", //"ip4" => "", //"ip6" => "", //"ua" => "", //"browser" => "", //"platform" => "", //"device" => "", //"utm_source" => "", //"utm_campaign" => "", //"utm_medium" => "", //"utm_term" => "", //"utm_content" => "", ), ); $response = $ac->api( "tracking/log", $post_data ); echo "<pre>"; print_r( $response ); echo "</pre>"; ?>