Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: integrate analytics.nextopia.net to AspDotNetStorefront

  1. #1
    lengyang is offline Junior Member
    Join Date
    Sep 2010
    Posts
    0

    Question integrate analytics.nextopia.net to AspDotNetStorefront

    I am new to AspDotNetStorefront. I was assigned to integrate a customer's AspDotNetStorefront website with analytics.nextopia.net. If someone could point to where I should start. Here is the instruction in the request.

    Please import the below code into the website "Thank You" page in order to allow us to track whick key search terms convert through search bar function.
    Advanced Purchase Logging:

    <form style="display:none;" name="nxtpform">
    <textarea id="nxtpta">
    [order-id]|[affiliation]|[total]|[tax]|[shipping]|[city]|[state]|[country]
    [order-id]|[sku]|[productname]|[category]|[price]|[quantity]
    [order-id]|[sku]|[productname]|[category]|[price]|[quantity]
    [order-id]|[sku]|[productname]|[category]|[price]|[quantity]...
    </textarea>

    <script language = "javascript">
    function nxtsubmit_purchase() {
    var nxturl = "https://analytics.nextopia.net/p.php";
    var nxty = "guid here";
    var nxtz = "1";
    info = new Image(1, 1);
    info.src = nxturl + "?y=" + nxty + "&z=" + nxtz + "&x=" + escape(document.nxtpform.nxtpta.value);
    }

    nxtsubmit_purchase();
    </script>

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    The easiest way to do this would be to insert that code directly into the orderconfirmation.aspx page (our 'Thank you' page). You should be able to look at the code we use for Google analytics to get an idea of how to do that.