在哪里插入谷歌转换代码时,没有感谢页面


Where to insert the google conversion code when there is no thank you page?

我将把我的代码粘贴到我的contact-form.php文件中,我认为转换代码应该放在那里。

事情是我没有一个感谢页面,我不知道我到底要粘贴谷歌转换代码(在什么文件和什么代码行)。

我读过其他人的对话,但我不完全明白我必须做什么。这是我的登陆页面:http://crediflash.com.mx/pide/tu_credito_ya.html谢谢! !

<?php
$to="mr.rivers220@gmail.com";/*rro@quintaimagen.com.mx*/
$subject="Message from the Landing - Contact Form ";
$date=date("l, F jS, Y");
$time=date("h:i A");
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$phone=$_REQUEST['phone'];
$caoch=$_REQUEST['caoch'];
$file=$_REQUEST['file'];
$msg="
Mensaje enviado de la landing en la fecha $date, a la hora: $time.'n
First Name: $name'n
Email: $email'n
Phone: $phone'n
Caoch: $caoch'n
File: $file
";
if($email=="") {
echo "<div class='alert alert-danger'>
<a class='close' data-dismiss='alert'>×</a>
<strong>¡Error!</strong> Favor de llenar todos los campos.
</div>";
} else {
mail($to,$subject,$msg,"From:".$email);
echo "<div class='alert alert-success'>
<a class='close' data-dismiss='alert'>×</a>
<strong>¡Gracias! Nos comunicaremos contigo</strong>
</div>";
}
?>

按钮在HTML文件中的样子如下:

<button type="submit" value="¡Pedir información ya!" 
class='btn submit sub-form' name="submit">¡Pedir información ya!</button>

您需要将其输出到用户已转换的位置。

这将出现在else块中,在您的例子中表示¡Gracias!