Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default PPC tracking code - where to insert in Checkout Success page?

    Good day,

    I just signed up with PPC myshopping.com.au and used a modified Yahoo! data feed to supply our shop catalog.

    MyShopping.com.au suggests to install a modified tracking code into our Checkout Success page in order to send a cookie back to their site so lead conversions are trackable.

    The raw code supplied by MyShopping.com.au contains variables required by them and looks like this:

    <img height=0 width=0 src="https://www.myshopping.com.au/sale.asp?mid=MY_ID&amount=<? echo $TotalSalesValue ?>&order=<? echo $OrderNumber ?>">
    Their instructions are:

    The code should be placed between the <body> tags, You should NOT place the code in the header or footer of your page.
    I want to assign the order total (excluding shipping cost) to their required variable $TotalSalesValue and the actual order ID to their variable $OrderNumber.

    My questions:

    1. Which ZC variables should I use?
    2. into which file should I insert the code to assign the variables (eg $TotalSalesValue = $what_ever_it_may_be)?
    3. into which checkout_success file and where should I insert their raw code?

    ZC 1.3.8.a with loads of add-ons
    Cold Steel template (modified)

    Thanks in advance
    Last edited by frank18; 17 Feb 2010 at 02:29 AM.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: PPC tracking code - where to insert in Checkout Success page?

    Made some progress:

    1. In the MyShopping.com.au code I simply replaced $OrderNumber with $zv_orders_id
    2. inserted their code into includes/templates/MY_TEMPLATE/templates/tpl_checkout_success_default.php just before the last </div> to read now:
    <!--bof -myshopping tracking-->
    <img height=0 width=0 src="https://www.myshopping.com.au/sale.asp?mid=MY_ID&amount=<? echo $TotalSalesValue ?>&order=<? echo $zv_orders_id ?>">
    <!--eof -myshopping tracking-->
    </div>
    Did a test run and the order number shows up in the source of the checkout success file.

    Still struggling to find the variable containing the subtotal of a new order.

    Anyone please?

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: PPC tracking code - where to insert in Checkout Success page?

    success!!

    here is my code for www.myshopping.com.au

    <!--bof -myshopping tracking-->
    <img height=0 width=0 src="https://www.myshopping.com.au/sale.asp?mid=xxxx&amount=<?php echo $order_summary['commissionable_order'] ?>&order=<?php echo $zv_orders_id ?>">
    <!--eof -myshopping tracking-->
    where xxxx needs to be replaced by the real merchant id

    checked at their site and the sale has registered.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: PPC tracking code - where to insert in Checkout Success page?

    There is a better method...

    Tracking codes should be inserted into the footer, and then this should be saved in a folder named checkout_success

    Their "advice":
    The code should be placed between the <body> tags, You should NOT place the code in the header or footer of your page.
    ...does not apply, because in zencart, the footer template is encased inside the <body> tags anyway...

    Go grab a copy of this file:

    includes/templates/template_default/common/tpl_footer.php

    Open it for editing using a plain text editor.

    Insert your tracking code at the bottom of the file. (You need to determine whether you need <php? and ?> (opening and closing php tags). If the tracking code is not php, then just insert it after the footer's closing php tag.

    After you have inserted it into your local copy of tpl_footer.php, SAVE the file on your local machine.

    On your SERVER, create the following folder:

    includes/templates/YOUR_TEMPLATE/checkout_success/

    Then, ftp your new tpl_footer.php to that folder, so you get:

    includes/templates/YOUR_TEMPLATE/checkout_success/tpl_footer.php
    20 years a Zencart User

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: PPC tracking code - where to insert in Checkout Success page?

    thanks schoolboy, I'll play with that tomorrow and then let them know so they can advise fellow zenners for the future

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: PPC tracking code - where to insert in Checkout Success page?

    There is a better method...

    Tracking codes should be inserted into the footer, and then this should be saved in a folder named checkout_success
    Didn't make any difference at all. So I left it as per above - without the need of creating yet another sub-folder.

 

 

Similar Threads

  1. How do I put a Google tracking code in my checkout-success file?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 25 Jul 2008, 07:52 PM
  2. Sales tracking code for checkout success, please help!
    By boinkit in forum General Questions
    Replies: 0
    Last Post: 6 Mar 2008, 06:08 PM
  3. where is the checkout success page??
    By humbll in forum General Questions
    Replies: 4
    Last Post: 11 Oct 2007, 03:00 AM
  4. Tracking Code on Checkout Page
    By BigMacYin in forum Managing Customers and Orders
    Replies: 0
    Last Post: 2 May 2007, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg