E
E
Evgeny Bezymyannikov2010-10-22 16:27:29
Marketing
Evgeny Bezymyannikov, 2010-10-22 16:27:29

Goal cost in GA

How to calculate the cost of a goal?
There is a counter in AdWords where you can specify the price of the product.
It is possible to dynamically insert the total cost of the order into the counter... BUT... but you need to count all orders from all channels for attracting traffic.

adwords.google.com/support/aw/bin/answer.py?hl=ru&answer=115794# Only general concepts and explanations are missing here.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Bezymyannikov, 2010-10-26
@psman

I answer myself and hope that I have enough strength to write a full-fledged article about this:
on the page that completes the purchase,
the counter
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol? 'https://ssl': 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore (ga, s);
})();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview'])
_gaq.push(['_addTrans',
'1234', // order ID - mandatory
'Womens Apparel', // Store name
'28.28', // Amount
'1.29', / / tax
'15.00', // shipping
'San Jose', // city
'California',
// state 'USA' // country
]);
_gaq.push(['_addItem', // if there are many products in the purchase, then this item can be repeated for each product or make 1 product for a total of
'1234',
'T-Shirt', // Product name
'Olive Medium', // Category or section (if needed)
'11.99', // unit price - Price of 1 piece required
'1' // quantity - quantity required
]);
_gaq.push(['_trackTrans']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol? 'https://ssl': 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore (ga, s);
})();
</script>
So, we get the opportunity to "fire" all the goods sold via the Internet.
City, section, country, etc. parameters can be a filter in GA to display convenient statistics on countries, regions, catalog sections, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question