U0
Impostazione codice monitoraggio vendite
Ciao, vorrei inserire il codice per monitorare le transazioni / vendite tramite il seguente codice fornito da google:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script>
<script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-xxxxxx-x"); ; var pageTracker = _gat._getTracker("UA-XXXXX-1"); pageTracker._addTrans( "1234", // Order ID "Mountain View", // Affiliation "11.99", // Total "1.29", // Tax "5", // Shipping "San Jose", // City "California", // State "USA" // Country );
pageTracker._addItem( "1234", // Order ID "DD44", // SKU "T-Shirt", // Product Name "Green Medium", // Category "11.99", // Price "1" // Quantity ); pageTracker._trackTrans(); } catch(err) {} </script>
Il problema è che bisogna rendere dinamici i campi dei dettagli. Ho visto tra i tag predefiniti ma non li ho trovati tutti. Sareste così gentili da aiutarmi? Grazie in anticipo.
Salvatore Ultracom
|