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 cart pages: [FONT=Courier New, Courier, mono]<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">[/FONT]
- [FONT=Courier New, Courier, mono]</script>[/FONT]
[FONT=Courier New, Courier, mono]<script type="text/javascript">[/FONT]
[FONT=Courier New, Courier, mono]_uacct="UA-xxxx-x";[/FONT]
[FONT=Courier New, Courier, mono]_udn="none";[/FONT]
[FONT=Courier New, Courier, mono]_ulink=1;[/FONT]
[FONT=Courier New, Courier, mono]urchinTracker();[/FONT]
[FONT=Courier New, Courier, mono]</script>[/FONT]
<B>
- Change the links from the main site to the secure site to use [FONT=Courier New, Courier, mono]__utmLinker[/FONT] as follows. If your current links look like: [FONT=Courier New, Courier, mono]<a href="https://www.securecart.com/?store=parameters">Purchase Now</a>[/FONT]
change them to:
</B>
[FONT=Courier New, Courier, mono]<script type="text/javascript">[/FONT]
[FONT=Courier New, Courier, mono]document.write('<a href="javascript:__utmLinker(\'https://www.securecart.com/?store=parameters\');">Purchase Now</a>');[/FONT]
[FONT=Courier New, Courier, mono]</script>[/FONT]
[FONT=Courier New, Courier, mono]<noscript>[/FONT]
[FONT=Courier New, Courier, mono]<a href="https://www.securecart.com/?store=parameters">Purchase Now</a>[/FONT]
[FONT=Courier New, Courier, mono]</noscript>[/FONT]
The code above provides links for users with or without JavaScript enabled. It's 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 [FONT=Courier New, Courier, mono]<body>[/FONT] tag and the JavaScript call.
Bookmarks