< Browse > Home / Actinic, Ecommerce Tracking / Blog article: Actinic Version 8 Ecommerce Tracking in Google

| Mobile | RSS

Actinic Version 8 Ecommerce Tracking in Google

How to Enable e-commerce tracking In Actinic version 8. I think that if you follow this example loosely you will be able to complete it in every single version.

Install the scripts

Step 1

Download the main roi script from 

http://www.davestopherseo.co.uk/roi-test.js

and rename it to roi.js make sure you adjust all the items in the OPTIONS section to match your own site.

Download jQuery from

http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.1.min.js

rename it to jquery.js

Place roi.js and jquery.js into your actinic root directory. You should be able to complete this task through using ftp’s

Step 2

Set Actinic Page Type to ‘Receipt’

Place the following changes into the section of ‘Receipt Page Layout’

  1. <script src="jquery.js"></script>
  2. <script src="roi.js"></script>

Wrap Actinic Variables with span tags.

The roi script needs a way of referencing each of the Actinic variables, you should complete this by wrapping each of them with a span tag and giving them a class. This could easily work with another shopping cart system as long you have a way of accessing the receipt templates.

.receipt_order_id in ‘Receipt Order Number’ layout

  1. <span><Actinic:Variable /></span>

.receipt_total in ‘Total Row’ layout

  1. <span ><Actinic:Variable /></span>

.receipt_tax in ‘Tax 1 Row’ layout

  1. <span><Actinic:Variable /></span>

.receipt_shipping in ‘Shipping Charge Row’ layout

  1. <span ><Actinic:Variable /></span>

.receipt_town & .receipt_county in ‘Receipt Invoice Address Details’ layout

  1. <span><Actinic:Variable /></span>
  2. <span ><Actinic:Variable /></span>

.receipt_line, .receipt_price in ‘Product Line Row’ layout

The .receipt_line class has to be added so the roi script can loop through each product row.

  1. <tr>
  2. <td colspan="<Actinic:Variable />">
  3. <actinic:variable />
  4. </td>
  5. <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPriceInCart%22%20%2f%3e" >
  6. <td align="right" >
  7. <span ><Actinic:Variable /></span>
  8. </td>
  9. <td align="right" >
  10. <Actinic:Variable/>
  11. </td>
  12. </actinic:block>
  13. </tr>

.receipt_reference, .receipt_name, .receipt_quantity in ‘Cart Product Details’ layout

  1. <span ><Actinic:Variable /></span>
  2. <span ><Actinic:Variable/></span>
  3. <span ><Actinic:Variable /></span>

.receipt_category & .receipt_country_code

If you have a way of setting .receipt_category & .receipt_country_code values they will be automatically used instead of the default variables set in the roi script.

All Done!

Update your site and wait 24 hours for Google to start showing your stats. This is all you need to complete. If you have any problems with this leave a comment and I will get back to you with a answer.

Random Posts

Random Posts

Leave a Reply