Google Analytics Problem

Discussion in 'Troubleshooting' started by jrstmartin, Aug 3, 2008.

  1. jrstmartin

    jrstmartin New Member

    Joined:
    Aug 12, 2007
    Messages:
    12
    Hello,

    I'm trying to track my website & my shopping cart (1Shoppingcart.com) pages with Google Analytics. When you want to do this, you have to follow the instructions here (for the old GA code):

    http://www.google.com/support/googleanalytics/bin/answer.py?answer=74986

    And in particular, the last paragraph that talks about using __utmLinkPost() in your <form>

    I need to insert that Javascript into the form inside aMember signup.html.

    Currently I tried:

    Code:
    <form id="signup" method="post" action="{$smarty.server.PHP_SELF|escape}" onsubmit="return validateStandard(this) && __utmLinkPost(this);">
    But this fails in 2 ways - aMember does not process the signup/payment (it's Pending instead of Active) & GA does not track anything.

    I know it has something to do with having 2 calls inside 1 onsubmit - this is very tough to get working and I cannot find any solid information on how to use 2 calls inside 1 onsubmit.

    How can I make this work?

Share This Page