Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

In the Ecommerce Transactions with Google Analytics, we can code as below:

    _gaq.push(['_addTrans',
    '1234',       // order ID
    'SitePoint',  // store
    '19.99',      // total
    '1.50',       // tax
    '3.00',       // shipping
    'Chicago',    // city
    'Illinois',   // state
    'USA'         // country
]);

But I want to implement it for employer registration page where I wont get order_id and total fields. Instead can I use employer_id and company name by replacing oerder_id and store... Will it works ?

for reference you can see GA Ecommerce How to use it for employer registration ?

share|improve this question
add comment

1 Answer 1

You should create a Google Analytics profile for testing purposes. When you have modified your eCommerce tracking snippet to suit your needs and are satisfied with the results in GA you can then change the profile ID to a new account and start fresh. That's easier than trying to zero out transactions.

Remember though you do have custom variables to use _setCustomVar() https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setCustomVar

A good article on uses of custom variables http://cutroni.com/blog/2011/06/14/5-google-analytics-custom-variables-for-ecommerce/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.