Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to install Shopzilla revenue tracking script?

    Did they tell you which page they want this on? I would think the order confirmation or checkout_success page would be it, but you need direction from them. In any case, you would not paste the code into any PHP file; you would rename them to start with jscript_ and save them in one of the /jscript/ folders, depending on what page they are needed in. The /jscript/ folders for a template or page will autoload all files that start with jscript_.
    jscript_shopzilla_data.js
    (do not include <script> tags in this file)
    Code:
    <!--
    /* Performance Tracking Data */
    var mid = '';
    var cust_type = '';
    var order_value = '';
    var order_id = '';
    var units_ordered = '';
    //-->
    jscript_shopzilla_tracker.js
    Code:
    <script language="javascript" src="https://www.shopzilla. com/css/roi_tracker.js"></
    script>
    I'm not certain of the way to call an external script in this format, so anyone with authoritative info, please chime in.

    You also need to get the current order info into the script variables, which is another task. You might need to name the file jscript_shopzilla_data.php and include some PHP code to insert the variables.
    Last edited by gjh42; 16 Jan 2014 at 07:45 PM.

 

 

Similar Threads

  1. Shopzilla Tracking Code Placement?
    By sartor in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 5 Sep 2011, 09:20 AM
  2. Script for Shopzilla "performance tracking"
    By marvin in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Nov 2009, 04:28 AM
  3. Shopzilla tracking in Worldpay integration
    By crazycucumber in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Apr 2007, 09:13 AM
  4. Tracking Code placement - Shopzilla
    By crazycucumber in forum General Questions
    Replies: 0
    Last Post: 3 Apr 2007, 08:29 AM

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