Editing Google Analytics eCommerce Javascript for Volusion
-
Does anyone know how to edit the ecommerce javascript with Volusion dynamic variables? I thought I did it correctly but none of the information got recorded in GA. It recorded that there was a transaction made but not info on the purchase price, order #, etc. This is the current code I am using:
NOTE: In Volusions customer support center they provided this information:
Where Order-Specific Information is Generated
Order-specific information can be generated by JavaScript on the OrderFinished.asp page within Volusion. On this page, two JavaScript arrays will be initialized that advanced users may need to be aware of. The arrays and their contents are as follow:
Order Array ContentsOrder[0] = Order ID
Order[1] = Unused
Order[2] = Payment Amount
Order[3] = Affiliate Commisionable Value
Order[4] = Sales Tax
Order[5] = Total Shipping Cost
Order[6] = Billing City
Order[7] = Billing State
Order[8] = Billing CountryOrderDetails Array Contents
OrderDetails[X][0] = Order ID
OrderDetails[X][1] = Order Detail ID
OrderDetails[X][2] = Product Code
OrderDetails[X][3] = Product Name
OrderDetails[X][4] = (unused)
OrderDetails[X][5] = Product Price
OrderDetails[X][6] = QuantityNote that in the above example, X refers to a line item number (beginning from zero). Note that there can be multiple Order Details arrays - one for each item contained within an order.
I'm a newbie at Analytics installation and could really use any help.
Thanks!
-
Thanks Gary! We've been looking everywhere and have tried several codes ourselves. Hoping this will work for our client's site.
-
Hi Jessica, The URLs below should help you out. http://guerrillo.com/add-google-analytics-volusion-store/ http://traffikco.com/blog/add-ecommerce-and-google-analytics-tracking-to-your-volusion-site/ It is not super technical stuff as long as you know how to copy paste it in my opinion. Best Regards, Gary
-
Hi Jessica, I work for Volusion and saw your question a couple of weeks ago. I sent you a private message but didn't hear back. There's a couple issues here.
As, Russ said above, you're referencing javascript variables inside single quotes, so the values for these variables are not 'seen'. If you take all references to Order[some digit]' out of the 'single quotes', google analytics should be able to 'see' the appropriate values. For example:
Where you have:
'Order[0]', // order ID - required
Should show like (no single quotes):
Order[0], // order ID - required
You would do this every time you see a reference to Order[some digit] and OrderDetails[x][some digit].
The second issue is a bit more complex. To send information about each product a customer may have ordered, you would need to loop through each set of products in the OrderDetails array. Because of the technical nature of the explanation, it would probably be simplest if you could privately message us your store url so we can make the updates for you.
Or, you could remove the existing google analytics you've implemented (general tracking and ecommerce tracking)...and use the recommended installation from the Volusion knowledge-base.
Hope this is helpful and please don't hesitate to reach out on a private message for more info.
Thank you.
-
From my first look, you are trying to call Javascript variables inside apostrophes. Should probably look like below, but I am just guessing.
_gaq.push(['_addItem',
OrderDetails[X][0],
OrderDetails[X][2],
OrderDetails[X][3],
'',
OrderDetails[X][5],
OrderDetails[X][6]
]);and the same would go for the other Order data.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
More 'New users' than 'Users' in Google Analytics
Hey Mozzers, I'm seeing more 'New users' than 'Users' in Google Analytics (see screenshot). This is over a 3 year time period. Any idea why new users would be greater than users? Thanks! 6lYmU0j
Reporting & Analytics | | RWesley0 -
Referral issue in Google analytics
We have an eCommerce website that counts paypal as a referral source in Analytics. The site takes people to Paypal to make a payment and then back to the website to a Thank You page once that payment has been made. Due to this, Analytics sees this as a conversion that has come from Paypal, and also records it as a referral source, when we know this is not really the case. This also distorts the data in analytics and prohibits us from clearly seeing which channels sales have come from. Is there anyway in Analytics to include Paypal as a part of the website so that it does not record Paypal as a separate referral website?
Reporting & Analytics | | Gavo0 -
Why am i seeing google.inc in analytics as direct traffic? Bug?
Recently i have seen two clients sites see a spike in direct traffic coming from google.inc. Is this a bot/bug which i should filter out. Just a bit confused why google.inc has visited our clients site 676 times! Any insight would be great.
Reporting & Analytics | | BlueWren1 -
Does Google encryption of keyword data impact SEO revenue reporting in Google analytics?
Hi there, I know Google has been encrypting SEO keyword data which they rolled out in September 2013. My question is - will this impact SEO revenue figures reported in Google analytics? I have been monitoring SEO revenue figures for a client and they are significantly down even though rankings have not lowered. Is this because of Google's encryption? Could there be another reason? Many thanks!
Reporting & Analytics | | CayenneRed890 -
How do I set a filter in Google Analytics?
I want to filter out direct traffic from the service provider msn. For some reason they are crawling our traffic and its throwing off my data. So I want to exclude direct, but only from msn. Would I set my first filter for direct then msn or vice versa? Thanks
Reporting & Analytics | | EcommerceSite0 -
Google Analytics traffic hijacking?
Ran into something interesting a week ago - the same Google Analytics code was installed on two different sites by accident. The account was reporting traffic from both domains. Haven't found a definitive answer on how to stop this yet if it were to be used maliciously?
Reporting & Analytics | | khemistry0 -
Do target underscore blank links adversely effect Google analytics
Good morning from 17 degrees C about to rain again wetherby UK... On this page http://business.leedscityregion.gov.uk/invest/sectors/ there are a number of links that pop open new windows despite being internal links 😞 My question is please... "If an internal link to a site is set to _blank and pops open a new window are there any detrimental affects to google analytics tracking e.g. increased exits etc" Any insights welcome 🙂
Reporting & Analytics | | Nightwing0 -
How do I unlink my Google Analytics Account from SEOmoz?
Hi, I am new to the community and have a very basic question concerning the internal settings for SEOmoz. How do I unlink the Google Analytics Account from SEOmoz. I am sure there is an easy answer to this. Thanks for helping!
Reporting & Analytics | | sandoery0