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
// Define constants | |
$cd_url = 'https://analytics-eu.clickdimensions.com/forms/h/foobar'; // copy from ClickDimensions | |
$cd_accountkey = 'foo'; // copy from ClickDimensions | |
$cd_domain = 'bar'; // copy from ClickDimensions | |
// Build fields (array) to ClickDimensions, matching keys and values | |
$fields = array( | |
'FirstName' => 'John', // retrieve from posted form | |
'LastName' => 'Doe', // retrieve from posted form | |
'Email' => 'john@doe.com', // retrieve from posted form |