Ideas - Click Marketing Automation for D365

Submit your Product Ideas to the Click Product Management Team below.

These will be reviewed for consideration in a future product release. It is not intended to provide Product Support. If you are having a product issue, please follow regular support procedures.


Thank you for taking the time to submit your thoughts!

Ensuring that our products address the needs of our customers is important to Click. By providing your input, you're helping us ensure that our products are built by Marketers, for Marketers.


Information about the Product Ideas portal can be found in this support article.

To submit ideas related to Click Intelligent Dashboards please go to this link.

Manual Programmatic Form Capture via PHP

Hey guys!

I just started with ClickDimensions for CRM and had a few forms which had their own workflow. The action attribute should be an URL to ClickDimensions with own error and success page. And that is not what I want!

With PHP I created a script with which I can send POST data to ClickDimension entered just-in-time right into my CRM without needing any success or error page at all!

It is easy to read and should be no problem for your web developer! I added the script as file, too!

 

<?php

if ($_POST) {

/***** YOUR SETTINGS *****/

$cd_formkey = "EXAMPLE"; // http://analytics.clickdimensions.com/forms/h/XXXXXXXXXXXXXXXXXXXXXXXXX


/***********************/
/***** DO NOT EDIT *****/
/***********************/

if (isset($_COOKIE['cuvid'])) { // TRACK

$cd_visitorkey = $_COOKIE['cuvid'];
$host = "analytics.clickdimensions.com";
$path = "/forms/h/".$cd_formkey;
$referer = $_SERVER['HTTP_REFERER'];

// REGENERATE POST DATA + CD_VISITORKEY
foreach($_POST as $k => $v) {
$post .= "&".$k."=".$v;
}
$data = $post."&cd_visitorkey=".$cd_visitorkey;

// SEND POST DATA
$fp = fsockopen($host, 80);
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Referer: $referer\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: ". strlen($data) ."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data);
while(!feof($fp)) {
$res .= fgets($fp, 128);
}
fclose($fp);

} else { // SEND MAIL

}
}

?>




form_capture.php
  • Guest
  • Jul 28 2020
  • Attach files
  • +2