-
AuthorPosts
-
Makis77 Friend
Makis77
- Join date:
- February 2006
- Posts:
- 59
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 8
- Thanked:
- 9 times in 1 posts
May 26, 2012 at 10:26 pm #177582Hi guys!
I installed JA Wall Quickstart some days ago on my pc and I just found out that template has pre-installed Joomlart’s Google analytics tracking code.
Yeap, you ve read it right…. Every website that is published using JA Wall is tracked under Joomlart Google Analytics account.In order to delete their Google analytics tracking code and replace it with yours just edit the following file:
../libraries/joomla/document/html/renderer/header.phpthen go to line 200 and remove the following code until line 207:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-243376-1']);
_gaq.push(['_setDomainName', 'joomlart.com']);
_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);and replace with this code:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-YY']);
_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);Pay special attention to “UA-XXXXXXX-YY” and replace it with your own.
ps: always take a file backup before applying any mods
3 users say Thank You to Makis77 for this useful post
renejdm Friendrenejdm
- Join date:
- April 2012
- Posts:
- 186
- Downloads:
- 0
- Uploads:
- 38
- Thanks:
- 8
- Thanked:
- 12 times in 1 posts
Makis77 FriendMakis77
- Join date:
- February 2006
- Posts:
- 59
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 8
- Thanked:
- 9 times in 1 posts
May 26, 2012 at 10:39 pm #455055Rene check out my edited post because I added some more details to make it easier replacing Analytics tracking code with your own.
<em>@renejdm 322306 wrote:</em><blockquote>@Makis77,
Thanks for that. I just checked and your right!
Rene</blockquote>
1 user says Thank You to Makis77 for this useful post
renejdm Friendrenejdm
- Join date:
- April 2012
- Posts:
- 186
- Downloads:
- 0
- Uploads:
- 38
- Thanks:
- 8
- Thanked:
- 12 times in 1 posts
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
May 29, 2012 at 2:16 am #455270Hi guys,
Thanks for the notification. We have removed it and updated this yesterday for JA Wall download package.
Regards
wombat1 Friendwombat1
- Join date:
- March 2010
- Posts:
- 117
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 38
- Thanked:
- 11 times in 1 posts
June 27, 2012 at 12:13 am #458961Where would be the best place to add our own Analytics code?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 27, 2012 at 8:03 am #459010Hi wombat1,
This guide will help you to config your Analytics code: http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=74932 then you can add it into.
<blockquote>templates/ja_wall/index.php</blockquote>
Regards
kunsco Friendkunsco
- Join date:
- May 2012
- Posts:
- 14
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 4
- Thanked:
- 3 times in 1 posts
July 14, 2012 at 12:41 am #460896Hi,
I have a similar issue with my website (http://www.kunsco.com). When I check my site in alexa, it shows: Sites Linking In: 1 (to following)
joomlart.com
joomlart.com/forums/showthread.php?74027-Ja-Wall-Keep-it-simple-Suggestionshow can I change that?
and ../libraries/joomla/document/html/renderer/header.php . I don’t have a header.php file in renderer folder.
July 14, 2012 at 5:46 am #460904No problem, go in templates/ja_wall/index.php and paste this code in head. The next day, will work.
kunsco Friendkunsco
- Join date:
- May 2012
- Posts:
- 14
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 4
- Thanked:
- 3 times in 1 posts
July 14, 2012 at 6:19 am #460906Thanks but I can’t see the code in your post. Or do you mean the code he has posted?
If you can edit, I’ll be glad. I have already tried to add this: <meta name=”alexaVerifyID” content=”xxxxxmycodexxxxxxxxxxx” />Regards,
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
July 19, 2012 at 8:23 am #461434Hi kunsco,
How your site going?
For Alexa, you have just done right.
<blockquote><meta name=”alexaVerifyID” content=”xxxxxmycodexxxxxxxxxxx” /></blockquote>For google analytics:
<blockquote>var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXXX-YY’]);
_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);</blockquote>It will take some days to view the result.
Regards
kunsco Friendkunsco
- Join date:
- May 2012
- Posts:
- 14
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 4
- Thanked:
- 3 times in 1 posts
August 3, 2012 at 8:40 pm #463107Hi wall crasher,
Thanks for asking, I have managed to fix most of the problems. New guide helped a lot. I use only K2 btw. Now I am working on a better user experience (easier link/article submission ) and a better mainav menu which is kinda limited at the moment. After I finish these last 2 steps, website will be ready to roll.
Unsolved problem: Lazyload causes conflicts when I try to share an item on facebook. Even if you disable it, it will try to load all thumbnails, I couldn’t figure out why..
Regards,
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
August 4, 2012 at 6:15 am #463140Hi kunsco,
The Lazyload plugin is conflict with social sharing.
You can try the attchment and overwrite file pluginssystemjalazyloadjalazyload.phpHope it helps.
Regards
blankito Friendblankito
- Join date:
- March 2012
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
December 20, 2012 at 11:55 am #476936Hello there,
i have a similar issue concerning the template Ja_Nex. Now the support has told me the same “solution” of looking into the header.php. But In fact, I can’t find that code in the header.php : Here for you guys to see:
<?php
/**
* ————————————————————————
* JA Nex Template for Joomla 2.5
* ————————————————————————
* Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license – Copyrighted Commercial Software
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com – http://www.joomlancers.com
* This file may not be redistributed in whole or significant part.
* ————————————————————————
*/// No direct access
defined(‘_JEXEC’) or die;
?>
<?php
$app = JFactory::getApplication();
$siteName = $app->getCfg(‘sitename’);
if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
<h1 class=”logo”>
<a href=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
</h1>
<?php else:
$logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
$sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
<div class=”logo-text”>
<h1><a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
</div>
<?php endif; ?>
<div class=”topheader clearfix”>
<?php if($this->countModules(‘search’)) : ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”search” />
</div>
<?php endif; ?><?php if($this->countModules(‘social’)) : ?>
<div id=”ja-social”>
<jdoc:include type=”modules” name=”social” />
</div>
<?php endif; ?>
</div>I’m I really blind or is it simply not there. This is a relatively big issue because no trackings works, this is absolutely killing a commercial website.
Thank for your thought and answers in advance,
Markus
arucardx Friendarucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
December 20, 2012 at 1:22 pm #476951Hmm Markus, what exactly is your problem? Are you trying to add analytic code or are you trying to remove analytic code? I am not sure if JA Nex comes included with Google Analytic code, but for this case in JA Wall it was a accidental inclusion which was removed in a later version.
If you are looking to add Google Analytic, there are Joomla plugins that does the job for you without having to manually modify index.php (if you dunno how).
1 user says Thank You to arucardx for this useful post
-
AuthorPosts
This topic contains 16 replies, has 10 voices, and was last updated by blankito 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum