If you have questions about our software, chances are this forum has the answers.
You'll need to register before you can post on the forum to ask your question or to answer another one. A reply will be posted to each and every question that is asked so there is no need to double post or bump your post.
We'll do our best to answer promptly, but in some cases it may take a day or two. If you bump your post, it may be removed. Bear with us and we'll get your question answered quickly.
Here are a few tips to help you to get your questions answered more rapidly.
IMPORTANT: Posts in English only. We don't employ translators and we'll be unable to understand your message properly and will probably delete it.
SOFTWARE: Each software has it's own forum. Software here is NOT supported. Posts about this software will be deleted. Supported software questions ONLY please.
SEARCH: Use the search option to see if your question has been answered on the forum before now or if there is an answer in the documentation of your software.
PERSONAL SUPPORT: If you have purchased a commercial version of any software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
LINKS: Any links posted are not clickable (to deter spammers) and must be copied / pasted into your browser address bar.
Index Search Register Login
Google analytics codes etcPosts in the Maian Greetings forum by bphupscher
I had put them in footer.tpl.php in 2.1 site
Anyone know if there a place where I should best try to put these codes?
The codes also try to get the (SEO) url and page title too for the counter(s)
cstatus = "active";
visible = "1";
page_title = "<?php echo $this->TITLE; ?>";
url_of_counter_file = "http://www.de-digitale-bemoediging.nl/counter/counter.php";
page_url = unescape( location.href );
referrer = ( document.referrer ) ? document.referrer : "";
page_title = ( page_title.length == 0 ) ? document.title : page_title;
document.write( url_of_counter_file + "?chCounter_mode=js&jscode_version=3.1.3&status=" + cstatus + "&visible=" + visible + "&page_title=" + encodeURIComponent( page_title ) );
document.write( "&page_url=" + encodeURIComponent( page_url ) + "&referrer=" + encodeURIComponent( referrer ) + "&res_width=" + screen.width + "&res_height=" + screen.height + "\"><" + "/script>" );
<object data="http://www.de-digitale-bemoediging.nl/counter/counter.php?chCounter_mode=noscript" type="text/html"></object>
<td align="center" valign="top" style="border-top:1px solid #68A7DA;border-bottom:1px solid #68A7DA;padding:5px;" class="header">
<!-- Piwik -->
<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.de-digitale-bemoediging.nl/piwik/" : "http://www.de-digitale-bemoediging.nl/piwik/");
piwik_action_name = document.title;
piwik_idsite = 1;
piwik_url = pkBaseURL + "piwik.php";
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
<noscript><p>Web analytics <img src="http://www.de-digitale-bemoediging.nl/piwik/piwik.php" style="border:0" alt="piwik"/></p>
<!-- /Piwik -->
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
var pageTracker = _gat._getTracker("UA-*********-**");
Thank you, it works.
(I had to update a bit in this script to get it working again, <?php echo $this->TITLE; ?> to get the title to my counter had to be changed (which I found the correct format in header tpl )