Witam,
chciałbym zoptymalizować stronę pod względem wyszukiwarki google i skorzystałem z narzędzia google, "optymalizator witryny" i mam dodać skrypty sterujące i śledzenia do kodu źródłowego poszczególnych podstron na stronie, lecz nie mogę odnaleźć w katalogu joomla odpowiednich plików .html.
Dokładnie, to chodzi mi o coś takiego:
http://adwords.google.pl/analytics/siteopt/ab_install_instructions?experiment=EAAAAO32WZG-5aIcFsqnAVrmV7s&account=18583406&user=AN_xLxdPZshxOxWftIQp4YjkxbT3zey03w&hl=pl&portal=1&t=_yux1DtBlEA
Pozdrawiam.
Ja bym zaczął do odwiedzenia strony JED, a tam w pole wyszukiwarki wpisał np. "google"
Zakładam, że średnio się orientujesz jak wygląda szablon CMS ? i który plik na ogół wyświetla-generuje stronę www , hmm? Podpowiem: index.php
Nie mogę znaleźć odpowiedniej wtyczki, która by umożliwiała wpisanie odpowiednich poleceń w kodzie źródłowym stronie... Zazwyczaj to są same wyświetlające ADSense, a mi chodzi o skonfigurowanie pod ADWords.
a na pewno wpisywałeś odpowiednie zapytanie w JED, bo mi wyszło, np: http://extensions.joomla.org/extensions/site-management/site-analytics/1053?qh=YToxOntpOjA7czo3OiJhZHdvcmRzIjt9
"04.04.08: Added Google Adwords Support".
Tyle, że on jest płatny...
Wersja 1.
Znalazłem coś takiego:
http://extensions.joomla.org/extensions/e-commerce/paid-membership-a-subscriptions/1232?qh=YTozOntpOjA7czo2OiJnb29nbGUiO2k6MTtzOjc6Im Fkd29yZHMiO2k6MjtzOjE0OiJnb29nbGUgYWR3b3JkcyI7fQ%3 D%3D
Tylko, który komponent mam zainstalować z tej paczki? Jakiś konkretny, czy wszystkie na raz?
Wersja 2.
Przeczytałem na tej (http://www.joomlashack.com/index.php?option=com_content&task=view&id=102&Itemid=4) stronie, że mam dodać kody śledzące za pomocą wbudowanego edytora zawartości HTML, czyli miałbym powrzucać te kody do artykułów... Zrobiłem tak, ale niestety... Google ADwords wywołuje błędy...
Wersja 3.
Zrobiłem też inaczej... Dodałem wszystkie kody do /templates/wohndesign/index.php i tak ten plik teraz wygląda:
<!-- Google Website Optimizer Control Script -->
**********
function utmx_section(){}function utmx(){}
(function(){var k='2851309695',d=document,l=d.location,c=d.cookie; function f(n){
if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n.
length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+
'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script><script>utmx("url",'A/B');</script>
<!-- End of Google Website Optimizer Control Script -->
<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
$document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $this->baseurl . '/templates/' . $this->template;
artxComponentWrapper($document);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
<!-- www.WD-Profi.de - Ihr Templatespezialist -->
<script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18583406-2']);
_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>
</head>
<body>
<div id="art-page-background-glare">
<div id="art-page-background-glare-image"></div>
</div>
<div id="art-main">
<div class="art-sheet">
<div class="Logo"></div>
<div class="art-sheet-tl"></div>
<div class="art-sheet-tr"></div>
<div class="art-sheet-bl"></div>
<div class="art-sheet-br"></div>
<div class="art-sheet-tc"></div>
<div class="art-sheet-bc"></div>
<div class="art-sheet-cl"></div>
<div class="art-sheet-cr"></div>
<div class="art-sheet-cc"></div>
<div class="art-sheet-body">
<div class="art-header">
<div class="art-header-png"></div>
<div class="art-header-jpeg"></div>
<script type="text/javascript" src="<?php echo $templateUrl; ?>/swfobject.js"></script>
<div id="art-flash-area">
<div id="art-flash-container">
<jdoc:include type="modules" name="header" />
</div>
</div>
<script type="text/javascript">swfobject.switchOffAutoHideShow();swfobject.regist erObject("art-flash-object", "9.0.0", "<?php echo $templateUrl; ?>/expressInstall.swf");</script>
</div>
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="banner1" style="artstyle" artstyle="art-nostyle" />
<?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?>
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php if (artxCountModules($document, 'left')) : ?>
<div class="art-layout-cell art-sidebar1"><?php echo artxModules($document, 'left', 'art-block'); ?>
</div>
<?php endif; ?>
<div class="art-layout-cell art-<?php echo artxGetContentCellStyle($document); ?>">
<?php
echo artxModules($document, 'banner2', 'art-nostyle');
if (artxCountModules($document, 'breadcrumb'))
echo artxPost(null, artxModules($document, 'breadcrumb'));
echo artxPositions($document, array('user1', 'user2'), 'art-article');
echo artxModules($document, 'banner3', 'art-nostyle');
?>
<?php if (artxHasMessages()) : ?><div class="art-post">
<div class="art-post-tl"></div>
<div class="art-post-tr"></div>
<div class="art-post-bl"></div>
<div class="art-post-br"></div>
<div class="art-post-tc"></div>
<div class="art-post-bc"></div>
<div class="art-post-cl"></div>
<div class="art-post-cr"></div>
<div class="art-post-cc"></div>
<div class="art-post-body">
<div class="art-post-inner">
<div class="art-postcontent">
<!-- article-content -->
<jdoc:include type="message" />
<!-- /article-content -->
</div>
<div class="cleared"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<?php endif; ?>
<jdoc:include type="component" />
<?php echo artxModules($document, 'banner4', 'art-nostyle'); ?>
<?php echo artxPositions($document, array('user4', 'user5'), 'art-article'); ?>
<?php echo artxModules($document, 'banner5', 'art-nostyle'); ?>
</div>
<?php if (artxCountModules($document, 'right')) : ?>
<div class="art-layout-cell art-sidebar2"><?php echo artxModules($document, 'right', 'art-block'); ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="cleared"></div>
<?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'art-block'); ?>
<jdoc:include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle" />
<div class="art-footer">
<div class="art-footer-inner">
<?php echo artxModules($document, 'syndicate'); ?>
<div class="art-footer-text">
<?php if (artxCountModules($document, 'copyright') == 0): ?>
<?php else: ?>
<?php echo artxModules($document, 'copyright', 'art-nostyle'); ?>
<?php endif; ?>
</div>
</div>
<div class="art-footer-background"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</p>
</div>
<!-- Google Website Optimizer Tracking Script -->
<script type="text/javascript">
if(typeof(_gat)!='object')document.write('<sc'+'ript src="http'+
(document.location.protocol=='https:'?'s://ssl':'://www')+
'.google-analytics.com/ga.js"></sc'+'ript>')</script>
<script type="text/javascript">
try {
var gwoTracker=_gat._getTracker("UA-18583406-1");
gwoTracker._trackPageview("/2851309695/test");
}catch(err){}</script>
<!-- End of Google Website Optimizer Tracking Script -->
<!-- Google Website Optimizer Conversion Script -->
<script type="text/javascript">
if(typeof(_gat)!='object')document.write('<sc'+'ript src="http'+
(document.location.protocol=='https:'?'s://ssl':'://www')+
'.google-analytics.com/ga.js"></sc'+'ript>')</script>
<script type="text/javascript">
try {
var gwoTracker=_gat._getTracker("UA-18583406-1");
gwoTracker._trackPageview("/2851309695/goal");
}catch(err){}</script>
<!-- End of Google Website Optimizer Conversion Script -->
</body>
</html>
Wklepałem właśnie w taki, a nie inny sposób i teraz gdy klikam w dowolne odnośniki w topmenu, to załaduje się docelowa strona, a następnie automatycznie odtworzy się strona obok... Jakby jakieś przekierowania byłyby ustawione, czy coś...
Gdy ktoś się znajdzie, kogo zainteresuje mój problem, to w razie takiej potrzeby, przywrócę kod do pliku index.php i sam zobaczy efekt końcowy.
Czyli mam rozumieć, że już żadnej pomocy i w tym temacie nie uzyskam?
Dodam link, który ukazuje co na razie udało mi się zrobić:
https://adwords.google.pl/analytics/siteopt/preview?experiment=EAAAACwcmQEbJD7Y46a_31c07kg&account=18583406
Jak widać, gdy przechodzimy w inne odmiany strony, to zostajemy ciągle na stronie głównej.
Z statyczną stroną nie miałem żadnych problemów, ale w joomli, strona jest porozrzucana w przeróżnych miejscach i nie wiem gdzie mam dodać te skrypty sterujące i śledzenia, tak, aby wszystko grało jak należy.
Próbowałem szczęścia z tym dodatkiem:
Google Website Optimizer Plugin (Basic)
lecz i ten nie przyniósł zamierzonego efektu :/
vBulletin® v4.2.5, Prawa przedruku © 2024 vBulletin Solutions, Inc. Wszystkie prawa zastrzeżone.
Tłumaczenie: Polskie Centrum Joomla!