我有一个抓取覆盖和再营销代码的脚本,但我需要帮助来检测转化 ID,例如:
<!-- Google Code for current client Remarketing List -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1057577648;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "666666";
var google_conversion_label = "FJ8sCKCE9wEQsLWl-AM";
var google_conversion_value = 0;
/* ]]> */
需要这样的正则表达式:
$gaRegExp = "Regex Here";
preg_match( $gaRegExp , $str , $matches);
$conversion_id = $matches;