1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| /// La partie SEO E-commerce de google analytics sur la page confirmation de retour ///
(string)$html = "<script type='text/javascript'>//<![CDATA[
// Google Analytics for WordPress by Yoast v4.2.2 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push(['_setAccount','xx-xxxxx-x']);
_gaq.push(['_trackPageview'],['_trackPageLoadTime']);
_gaq.push(['_addTrans',
'" .$ati->response['id'] . "',
'XXXXXXX',
'" . $montant . "',
'',
'',
'" . $ati->response['lodgerAddressCity'] . "',
'',
'France'
]);
_gaq.push(['_addItem',
'" . $ati->response['id'] . "',
'" . $ati->response['property']['id'] . "',
'bien n°" . $ati->response['property']['propertyLabel'] . " -- CB ".date("Y-m-d H:i:s")."',
'" . $ati->response['property']['propertyName'] . "',
'" . $montant . "',
'1'
]);
_gaq.push(['_trackTrans']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>";
echo $html;
logs("SIPS- SEO - E-COMMERCE--CB", $html); |
Partager