Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • Makis77 Friend
    #177582

    Hi 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.php

    then 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

    renejdm Friend
    #455053

    @makis77,

    Thanks for that. I just checked and your right!

    Rene

    Makis77 Friend
    #455055

    Rene 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>

    renejdm Friend
    #455057

    @makis77,

    Thanks for the correction. I have successfully replaced their tracking code with my own.

    Rene

    P.S. the file name is head.php

    Anonymous Moderator
    #455270

    Hi guys,

    Thanks for the notification. We have removed it and updated this yesterday for JA Wall download package.

    Regards

    wombat1 Friend
    #458961

    Where would be the best place to add our own Analytics code?

    Ninja Lead Moderator
    #459010

    Hi 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 Friend
    #460896

    Hi,

    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-Suggestions

    how can I change that?

    and ../libraries/joomla/document/html/renderer/header.php . I don’t have a header.php file in renderer folder.

    coda0maestoso Friend
    #460904

    No problem, go in templates/ja_wall/index.php and paste this code in head. The next day, will work.

    kunsco Friend
    #460906

    Thanks 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 Developer
    #461434

    Hi 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 Friend
    #463107

    Hi 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,

    http://www.kunsco.com

    Wall Crasher Developer
    #463140

    Hi kunsco,

    The Lazyload plugin is conflict with social sharing.
    You can try the attchment and overwrite file pluginssystemjalazyloadjalazyload.php

    Hope it helps.

    Regards


    1. jalazyload.zip
    blankito Friend
    #476936

    Hello 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.comhttp://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 Friend
    #476951

    Hmm 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).

Viewing 15 posts - 1 through 15 (of 16 total)

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