Notification

Urchin WebAnalytics Software is discontinued and is no longer supported. All Urchin documentation applies only to the Urchin product as it was at the time of discontinuation, and does not apply to any Google Analytics products or services.

Tracking Secure Store Transactions

Tracking Secure Store Transactions

This article authored by ivantage Limited, an Urchin Software Authorized Consultant

Urchin can track data from a shopping trolley on your own domain or on other domains with the addition of some code. To set up your pages to report transaction data to Urchin, please read How do I track e-commerce transactions?

In addition, if your store site is on a different subdomain or domain to your main site, follow the instructions below to configure your pages.

If your website initiates a purchase checkout process on a different subdomain (for example, if you send customers from www.mystore.com to shoppingcart.mystore.com):

  • Add the following line (in bold) to your tracking code on both your store site and your shopping trolley pages:

 

   <script src="/urchin.js" type="text/javascript">
   </script>
   <script type="text/javascript">
    _udn="mystore.com";
   </script>

If your website initiates a purchase checkout process on a separate store site (for example, if you send customers from www.mystore.com to www.securecart.com):

  • Add the following lines (in bold) to your tracking code on both your store site and your shopping trolley pages:

 

     <script src="/urchin.js" type="text/javascript">
     </script>
     <script type="text/javascript">
       _udn="none";
       _ulink=1;
     </script>
  • Change the links from the main site to the secure site to use utmLinker as follows. If your current links look like:

 

     <a href="https://www.securecart.com/?store=parameters">Purchase Now</a>
  • change them to:

 

   <script type="text/javascript">
   document.write('<a href="javascript:__utmLinker(\'https://www.securecart.com/?store=parameters\');">Purchase Now</a>');
   </script>
   <noscript>
   <a href="https://www.securecart.com/?store=parameters">Purchase Now</a>
   </noscript>
  • The code above provides links for users with or without JavaScript enabled. It is important to note that apostrophes need to be escaped with a backslash where they appear in the link or link text. Important: If your pages include a call to urchinTracker(), utmLinker(), utmSetTrans() or utmLinkPost(), your Analytics tracking code must be placed in your HTML code above any of these calls. In these cases, the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call.

If you send information to your shopping trolley using forms, use the utmLinkPost() function. It appends cookie data to the provided URL of the supplied form.

 

   <form action="http://newdomain.com/form.cgi" onSubmit="javascript:__utmLinkPost(this)">
  • This will work even for forms where the method="GET"

    Important: If your pages include a call to urchinTracker(), utmLinker(), utmSetTrans() or utmLinkPost(), your Analytics tracking code must be placed in your HTML code above any of these calls. In these cases, the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call.

 
Search
Clear search
Close search
Main menu
9052094980724070185
true
Search Help Center
true
true
true
false
false