Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Location
    Upstate NY
    Posts
    232
    Plugin Contributions
    0

    Default NexTag ROI Conversion Code Placement?

    Hi All

    I'm running a campaign with NexTag and would like to add their their ROI conversion code to the checkout success page.

    They have standard or advanced tracking, at a minimum it needs order # and order total. The advanced also wants products ordered and categories and a bit more stuff.

    So, at a minimum, I'd like to know how to enter the Zen Order ID and Order total in the basic code, and the correct file to place it in. The advanced tracking would be great to have, but it looks a bit involved, maybe NexTag should write a zc mod for that.

    Thanks

    Basic Code:
    PHP Code:
    <script type="text/javascript">
    <!--
        
    /* NexTag ROI Optimizer Data */
        
    var id 'nextag user id';
        var 
    rev '<REVENUE>';
        var 
    order '<ORDER ID>';
    //-->
    </script>
    <script type="text/javascript" src="https://imgsrv.nextag.com/imagefiles/includes/roitrack.js"></script> 
    Advanced Code:
    PHP Code:
    <script type="text/javascript">
    <!--
        
    /* NexTag ROI Optimizer Data */
        
    var id 'nextag user id';
        var 
    rev '<REVENUE>';
        var 
    order '<ORDER ID>';
        var 
    cats '<CATEGORY1|CATEGORY2|CATEGORY3|...>';
        var 
    prods '<PRODUCT1|PRODUCT2|PRODUCT3|...>';
        var 
    units '<UNITS1|UNITS2|UNITS3|...>';
    //-->
    </script>
    <script type="text/javascript" src="https://imgsrv.nextag.com/imagefiles/includes/roitrack.js"></script> 

    Definitions:

    <REVENUE> — specifies the sales amount of the current purchase.

    <ORDER ID> — specifies your store's Order ID for the current purchase

    <CATEGORY1|CATEGORY2|CATEGORY3|...> — specifies your store's categories for each product purchased in the order.

    <PRODUCT1|PRODUCT2|PRODUCT3|...> — specifies your store's product name for each product purchased in the order. This variable is used to ensure that we have matched the sale to the correct click. Since each order may contain a different number of products, your code will need to dynamically create the list of products based on the number of products in the order. Each product is separated by a pipe-character.

    <UNITS1|UNITS2|UNITS3|...> — specifies the number of units purchased for each product in the order. This variable is used to improve the accuracy of your reports. Since each order may contain a different number of products, your code will need to dynamically create the list of units based on the number of products in the order. Each unit is separated by a pipe-character.

  2. #2
    Join Date
    Nov 2007
    Location
    Upstate NY
    Posts
    232
    Plugin Contributions
    0

    Default Re: NexTag ROI Conversion Code Placement?

    The products and order number variables are in /includes/modules/pages/checkout_success/header_php.php. But I think jscript is supposed to go somewhere else. Still looking

  3. #3
    Join Date
    Nov 2007
    Location
    Upstate NY
    Posts
    232
    Plugin Contributions
    0

    Default Re: NexTag ROI Conversion Code Placement?

    Well, I have a bit of a solution. Still waiting to hear from NexTag to see if it returns anything to them.

    Made a file called jscript_checkout_success.php with the following code:

    PHP Code:
    <script type="text/javascript">
    <!--
        /* NexTag ROI Optimizer Data */
        var id = 'my nextag id num';
        var rev = '$0.00';
        var order = <?php echo $zv_orders_id?>;
    //-->
    </script>

    <script type="text/javascript" src="https://imgsrv.nextag.com/imagefiles/includes/roitrack.js"></script>
    The file went into /includes/modules/pages/checkout_success

    Viewing the source of the last checkout page shows this as the last entry in the <head> section:

    PHP Code:
    <script type="text/javascript">
    <!--
        
    /* NexTag ROI Optimizer Data */
        
    var id 'my nextag id num';
        var 
    rev '$0.00';
        var 
    order 4865;
    //-->
    </script>

    <script type="text/javascript" src="https://imgsrv.nextag.com/imagefiles/includes/roitrack.js"></script> 
    An array with the products ordered is in /includes/templates/template_default/templates/tpl_checkout_success_default.php (for the product updates option), but I'd need the quantities too and that isn't in checkout_success. (And anyway, I don't have the slightest idea how to parse an array in php so nevermind that! )

    As far as I can see, the previous page (/includes/languages/english/checkout_payment.php) has the order total and items ordered, but it's not until checkout_success that you have an order number. I don't know if any of the previous variables are still floating around by the time checkout_success loads, so this is as far as I can go I guess.

    So, no order total. I'll find out tomorrow if they at least got any order IDs.

  4. #4
    Join Date
    Nov 2007
    Location
    Upstate NY
    Posts
    232
    Plugin Contributions
    0

    Default Re: NexTag ROI Conversion Code Placement?

    Solved

    This worked fine. I only send the order ID and orders shoed up in NexTag's tracking. They also show the order total and an item name. I have no idea how they get it, but it's there.

 

 

Similar Threads

  1. Adding NexTag ROI Conversion Code
    By alpheus in forum General Questions
    Replies: 3
    Last Post: 23 Oct 2013, 11:53 PM
  2. Code Placement
    By uncharted in forum General Questions
    Replies: 4
    Last Post: 9 Mar 2012, 06:02 AM
  3. Customer Surveys and ROI code?
    By lawman in forum General Questions
    Replies: 0
    Last Post: 28 Jul 2006, 02:49 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