It's a long time I want to ask about your willing to integrate 2
(important) functions:
- Google Sitemap XML generation: I see it as just a special TPL which
output datas for whole product catalog in XML style, or it could be,
more professionnal, a tool in admin to submit directly sitemap to
specified google account
- Google Product Search: another special field in admin to push on
Google whole or part of the products catalog
May it's time to start a new module, very usefull: Google
interactions.
this module would give direct access or shortcut with login to:
- google analytics
- google adwords (along with a code updated "thank you" page, to send
cart info to google for ROI)
- google sitemap for automatic sitemap sending
- Google Product Search
Most of these options are now a standard on many merchant software,
and I think this now a must-have to send at least sitemap and
products.
Cart information for google analytics is also very important for
serious customer who use adwords.
Waiting your opinion.
Phil.
To unsubscribe from this group, send email to in-portal-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
2010/3/23 Alexander Obuhovich <aik....@gmail.com>:
2010/3/23 Alexander Obuhovich <aik....@gmail.com>:
2010/3/23 Alexander Obuhovich <aik....@gmail.com>:
<script type="text/javascript">and on multisites:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']); <<< insert the code previously setup in admin
_gaq.push(['_setDomainName', '.example1.com'];); <<< insert the main website address with a leading dot
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);
_gaq.push(['_setSessionCookieTimeout', 3600000]);<<< to be modified according to cookie duration setup in Admin
_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">note : using this tag, user can add a tracking for links to main website, as follow :
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345-1']);
_gaq.push(['_setDomainName', 'none'];);
_gaq.push(['_setAllowLinker', true]);
_link(); <<< see note below
_gaq.push(['_setSessionCookieTimeout', 3600000]);<<< to be modified according to cookie duration setup in Admin
_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>
<a href="http://example.com/test.html" onclick="_gaq.push(['_link', 'http://example.com/test.html']); return false;">click me</a>Using these 2 tracking codes we can have analytics reports for all websites under the same analytics page (excellent for cross-comparison)
// add item might be called for every item in the shopping cart# in checkout_success.tpl page, we need to add into standard tracking code :
// where your ecommerce engine loops through each item in the cart and
// prints out _addItem for each
_gaq.push(['_addItem',
'1234', // order ID - required
'DD44', // SKU/code
'T-Shirt', // product name
'Green Medium', // category or variation
'11.99', // unit price - required
'1' // quantity - required
]);
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
_gaq.push(['_addTrans',
'1234', // order ID - required
'Acme Clothing', // affiliation or store name
'11.99', // total - required
'1.29', // tax
'5', // shipping
'San Jose', // city
'California', // state or province
'USA' // country
]);
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
<?xml version="1.0" encoding="UTF-8"?>- add the address of XML sitemap file in robots.txt as follow :
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/</loc> <<< we should index all pages: content, products, news, links
<lastmod>2005-01-01</lastmod> <<< we put here the last update for each item, format YYYY-MM-DDThh:mmTZD
<changefreq>monthly</changefreq> <<< i suggest to put weekly, or may we could consider it as a parameter in admin setup?
<priority>0.8</priority> <<< setup values in admin for each type of pages (content, products, news, link)
</url>
</urlset>
Sitemap : http://example.com/sitemap.xmlHere are already coded script for your reference
2010/3/23 Dmitry Andrejev <dand...@gmail.com>:
2010/3/25 Dmitry Andrejev <dand...@gmail.com>:
there is -plenty of- allready coded PHP crawlers to generate sitemap,
could it be interesting (and easier) to generate sitemaps outside
In-Portal engine?
I gave links to these scripts sooner in this topic, I can resume them
again if needed.
Phil.
2010/4/9 Dmitry Andrejev <dand...@gmail.com>: