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 3 of 3

Thread: Convesion Tracking

  1. #1
    netprocity is offline Member
    Join Date
    Dec 2008
    Posts
    80

    Default Convesion Tracking

    Hello.

    I need to insert conversion tracking. I looked at the directions that are posted in your manual which state the following:

    INSTRUCTIONS
    Conversions, in the case of an ecommerce store, are completed sales. These are tracked by inserting special JS code into orderconfirmation.aspx - which customers will only see after finalizing their purchases.



    However, when I look at the ORDERCONFIRMATION.ASPX page it has the following code:

    HTML Code:
    <%@ Page language="c#" Inherits="AspDotNetStorefront.orderconfirmation" CodeFile="orderconfirmation.aspx.cs" MasterPageFile="~/App_Templates/Skin_1/template.master"  %>
    <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="PageContent">
        <asp:Panel ID="pnlContent" runat="server" >
            <asp:Literal ID="litOutput" runat="server"></asp:Literal>  
        </asp:Panel>
    </asp:Content>


    If I post the conversion tracking code on this page it will give an error. Where do I post the conversion code? This is in v9.

    Thanks
    James

  2. #2
    adamw is offline Junior Member
    Join Date
    Jun 2010
    Posts
    10

    Default

    Are you putting the script in script tags and everything? What errors does it return?

  3. #3
    netprocity is offline Member
    Join Date
    Dec 2008
    Posts
    80

    Default

    Hi.

    I just put it right in the code before the <asp:content id.....

    and the page failed it came up blank. I found nothing in my site log, but the page didn't work.

    Where exactly in this code should I put it.

    Here is the code I am inserting::

    HTML Code:
    <script type="text/javascript">
    document.write(unescape("%3Cscript src='" + (location.protocol=="https:" ? "https://" : "http://") + "cn.clickable.net/js/cct.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    document.cookie=cct.CookieCheck(document.cookie);
    cct.conversion_value = 'ReplaceWithServerVariable';
    cct.cct_log('xxxxxxxxxxxxxxx');
    </script>
    Should it look like this?

    HTML Code:
    <%@ Page language="c#" Inherits="AspDotNetStorefront.orderconfirmation" CodeFile="orderconfirmation.aspx.cs" MasterPageFile="~/App_Templates/Skin_1/template.master"  %>
    <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="PageContent">
    <script type="text/javascript">
    document.write(unescape("%3Cscript src='" + (location.protocol=="https:" ? "https://" : "http://") + "cn.clickable.net/js/cct.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    document.cookie=cct.CookieCheck(document.cookie);
    cct.conversion_value = 'ReplaceWithServerVariable';
    cct.cct_log('xxxxxxxxxxxxxxx');
    </script>
        <asp:Panel ID="pnlContent" runat="server" >
            <asp:Literal ID="litOutput" runat="server"></asp:Literal>  
        </asp:Panel>
    </asp:Content>