Sep 03 2010 
Support Center » Knowledgebase » How do I insert Google Analytics tracking into my MIVA Merchant 5 store?
 How do I insert Google Analytics tracking into my MIVA Merchant 5 store?
Solution

1. Add the javascript code into yoru head tag.

Login to you MIVA Merchant 5 Admin.

Click on the [+] next to Stores.

Click on the [+] next to your storename.

Click the Pages link.

Click the button next to the INVC Invoice page.

Click HEAD Tag Content* link above the template code.

Paste in the tracking code that Google sent you below all other code in the Global HEAD Tag Content textbox.

Sample Tracking code:

<mvt:if expr="g.Secure">

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-99999-9";
_udn = "domain.com";
urchinTracker();
</script>

<mvt:else>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-99999-9";
_udn = "domain.com";
urchinTracker();
</script>

</mvt:if>

Click the Update button.


2. Add the conversion tracking code to track sales data.

Click Pages in the admin tree.

Click the button next to the INVC Invoice page.

Click the Page link above the template code.

Paste the conversion tracking code (see below) below the global footer and above the final </mvt:item>.

<form style="display:none;" name="utmform">
<textarea id="utmtrans">
UTM:T|<mvt:if exp

1. Add the javascript code into yoru head tag.

Login to you MIVA Merchant 5 Admin.

Click on the [+] next to Stores.

Click on the [+] next to your storename.

Click the Pages link.

Click the button next to the INVC Invoice page.

Click HEAD Tag Content* link above the template code.

Paste in the tracking code that Google sent you below all other code in the Global HEAD Tag Content textbox.

Sample Tracking code:

<mvt:if expr="g.Secure">

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-99999-9";
_udn = "domain.com";
urchinTracker();
</script>
lt;mvt:else>

<script src="<a href="http://www.google-analytics.com/urchin.js"%gt;" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-99999-9";
_udn = "domain.com";
urchinTracker();
</script>
</mvt:if>

Click the Update button.


2. Add the conversion tracking code to track sales data.

Click Pages in the admin tree.

Click the button next to the INVC Invoice page.

Click the Page link above the template code.

Paste the conversion tracking code (see below) below the global footer and above the final </mvt:item>.

<form style="display:none;" name="utmform">
<textarea id="utmtrans">
UTM:T|<mvt:if expr="NOT ISNULL l.settings:order:id">&mvt:order:id;</mvt:if>|&mvt:global:affiliate;|&mvt:order:total;|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'TAX'">&mvt:charge:amount;</mvt:if></mvt:foreach>|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'SHIPPING'">&mvt:charge:amount;</mvt:if></mvt:foreach>|&mvt:global:customer:ship_city;|&mvt:global:customer:ship_state;|&mvt:global:customer:ship_cntry;
<mvt:foreach iterator="item" array="order:items">
UTM:I|<mvt:if expr="NOT ISNULL l.settings:order:id">&mvt:order:id;</mvt:if>|&mvt:item:code;|&mvt:item:name;|category|&mvt:item:price;|&mvt:item:quantity;
</mvt:foreach>
</textarea>
</form>

Click the Update button.


3. Add code to 'trigger' the tracking script to work by inserting a javascript onLoad() call in BODY tag.

Click Pages in the admin tree.

Click the button next to the INVC Invoice page.

Click the BODY Tag* link above template code.

Click the Advanced Mode link if you are in Point & Click mode.

Add onLoad="javascript:__utmSetTrans()" to your existing <body> tag:

<body bgcolor="#ffffff" onLoad="javascript:__utmSetTrans()">

Click the Update button.


4. Make sure you have E-Commerce Tracking turned on in your Google Analytics account:

Log in to your Google Analytics account.

Click Edit next to the profile you'd like to enable.

On the Profile Settings page, click edit next to Main Website Profile Information.

Change the E-Commerce Website radio button from No to Yes.


5. Activate the tracking feature in your Analytics Account:

Click Analytics Settings below the Google logo at the top of the page.

Click Check Status next to the profile that you created for your store.


Your Google Analytics account should now be collecting data. It takes 24-48 hours to get the first data to generate reports.

r="NOT ISNULL l.settings:order:id">&mvt:order:id;</mvt:if>|&mvt:global:affiliate;|&mvt:order:total;|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'TAX'">&mvt:charge:amount;</mvt:if></mvt:foreach>|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'SHIPPING'">&mvt:charge:amount;</mvt:if></mvt:foreach>|&mvt:global:customer:ship_city;|&mvt:global:customer:ship_state;|&mvt:global:customer:ship_cntry; <mvt:foreach iterator="item" array="order:items"> UTM:I|<mvt:if expr="NOT ISNULL l.settings:order:id">&mvt:order:id;</mvt:if>|&mvt:item:code;|&mvt:item:name;|category|&mvt:item:price;|&mvt:item:quantity; </mvt:foreach> </textarea> </form>

Click the Update button.


3. Add code to 'trigger' the tracking script to work by inserting a javascript onLoad() call in BODY tag.

Click Pages in the admin tree.

Click the button next to the INVC Invoice page.

Click the BODY Tag* link above template code.

Click the Advanced Mode link if you are in Point & Click mode.

Add onLoad="javascript:__utmSetTrans()" to your existing <body> tag:

<body bgcolor="#ffffff" onLoad="javascript:__utmSetTrans()">

Click the Update button.


4. Make sure you have E-Commerce Tracking turned on in your Google Analytics account:

Log in to your Google Analytics account.

Click Edit next to the profile you'd like to enable.

On the Profile Settings page, click edit next to Main Website Profile Information.

Change the E-Commerce Website radio button from No to Yes.


5. Activate the tracking feature in your Analytics Account:

Click Analytics Settings below the Google logo at the top of the page.

Click Check Status next to the profile that you created for your store.


Your Google Analytics account should now be collecting data. It takes 24-48 hours to get the first data to generate reports.



Article Details
Article ID: 1
Created On: Aug 04 2006 07:33 PM

 This answer was helpful  This answer was not helpful

Posted By: Helena Martin (helenam@gktw.org) On: Oct 02 2006 04:59 PM
This is wonderful! Very helpful!!!!
Thanks for the wonderful help. Can't wait to try it out.
 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Knowledgebase | News
Language:

Help Desk Software By Kayako SupportSuite v3.30.02