<?php
require_once __DIR__ . '/rj/client-config.php';
require_once __DIR__ . '/rj/security-client.php';

echo "Testing trackEvent for RJ...
";

$ip = "1.2.3.4";
$res = trackEvent([
    'action' => 'visit_test',
    'ip_address' => $ip,
    'captured_ip' => $ip,
    'visitor_id' => 'test_script_'.time(),
    'metadata' => ['test' => true]
]);

echo "Result: " . ($res ? "SUCCESS" : "FAILED") . "
";
