Documentation You are here: start » v » 2.0 » analytics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v:2.0:analytics [2019/11/22 00:06]
adam [Other important Google Analytics stuff]
v:2.0:analytics [2019/11/22 00:07] (current)
adam [Requirements]
Line 7: Line 7:
 ==== Requirements ==== ==== Requirements ====
   * You must be including ''​loader.js''​ (as found on the '​Sample Code' section of your store'​s administration) in your website template (do not include this in your cart, checkout, or receipt template). If you're not sure if you are, you can view your website source to confirm - you should see it included once in your own website'​s HTML, but not included if you view the source of the full-page cart, checkout or receipt.   * You must be including ''​loader.js''​ (as found on the '​Sample Code' section of your store'​s administration) in your website template (do not include this in your cart, checkout, or receipt template). If you're not sure if you are, you can view your website source to confirm - you should see it included once in your own website'​s HTML, but not included if you view the source of the full-page cart, checkout or receipt.
-  * Your products ​should use the ''​SKU''​ parameter ​in Google Analytics, which is the ''​code''​ parameter in FoxyCart. If your products do not include a ''​code''​ value (as passed to FoxyCart) FoxyCart will attempt to generate one from the ''​name''​ attribute, but FoxyCart will not take into account duplicate product names, which can clobber your data. <wrap important>​If you are not using the ''​code''​ parameter for your products, this Google Analytics tracking may not work correctly.</​wrap>​+  * Your products ​will be passed to Google Analytics with an ''​SKU''​ parameter, which is the ''​code''​ parameter in FoxyCart. If your products do not include a ''​code''​ value (as passed ​in your add to carts) FoxyCart will attempt to generate one from the ''​name''​ attribute, but FoxyCart will not take into account duplicate product names, which can clobber your data. <wrap important>​If you are not using the ''​code''​ parameter for your products, this Google Analytics tracking may not work correctly.</​wrap>​
   * All your add-to-cart links and forms must point to ''​https://​your_foxycart_domain''​ with the ''​https''​ (and not ''​http''​).   * All your add-to-cart links and forms must point to ''​https://​your_foxycart_domain''​ with the ''​https''​ (and not ''​http''​).
  

Site Tools