Web based family history software

Question Custom_js module welldid not work.

More
12 years 3 months ago #1 by JAS
Everything is setting according to instruction, Google Analytics report do you function, but are not displayed no visitors. At verification source code pages isn't code GA on pages displayed.

End code pages Xenea:

<script type="text/javascript">
//<![CDATA[
jQuery.ajaxSetup({cache:true});
jQuery("#block_8").load("index.php?ctype=gedcom&action=ajax&block_id=8");
jQuery("#block_13").load("index.php?ctype=gedcom&action=ajax&block_id=13");
jQuery("#block_14").load("index.php?ctype=gedcom&action=ajax&block_id=14");

//]]>
</script>
</body></html>

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #2 by kiwi
Replied by kiwi on topic Re: Custom_js module welldid not work.
When did you download the custom_js module? The current version available is compatible with webtrees 1.2.5, but it has only been available for a few days. Any version before that will not be compatible with webtrees 1.2.5..

Also, ths version had an extra instruction. You must also enable (save) it under Administration>Modules-Menus.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago - 12 years 3 months ago #3 by JAS
Replied by JAS on topic Re: Custom_js module welldid not work.
Custom_js module v. 1.2.5.
Everything is setting according to instruction and Save.


GA code:

var _gaq = _gaq || [];
_gaq.push();
_gaq.push();

(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);
})();

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Last edit: 12 years 3 months ago by JAS.

Please Log in or Create an account to join the conversation.

  • heinrichderfuchs
  • Visitor
  • Visitor
12 years 3 months ago #4 by heinrichderfuchs
Replied by heinrichderfuchs on topic Re: Custom_js module welldid not work.
Hi,

I encountered the same problem. Had GA for some time now and it all worked. Downloaded the new 1.2.5 and custom_js 1.2.5 and since then it didi not work anymore. Same as with user JAS.
Heinrich

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #5 by kiwi
Replied by kiwi on topic Re: Custom_js module welldid not work.
Can one of you please provide the code you have entered into the custom_js module configuration (without your unique GA id) so we can test for the fault.

Please Log in or Create an account to join the conversation.

  • heinrichderfuchs
  • Visitor
  • Visitor
12 years 3 months ago #6 by heinrichderfuchs
Replied by heinrichderfuchs on topic Re: Custom_js module welldid not work.
My code is the following:

var _gaq = _gaq || []; _gaq.push(); _gaq.push(); (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); })();

I copied it from Google without the script-part after the old one did not work anymore.
Heinrich

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago - 12 years 3 months ago #7 by kiwi
Replied by kiwi on topic Re: Custom_js module welldid not work.

Also, ths version had an extra instruction. You must also enable (save) it under Administration>Modules-Menus


Are you sure have visited administration> menus (Yes I DO mean menus) and "save"?

See webtrees.net/index.php/en/forum/3-help-f...download-files#16828 posts #4 and #5
Last edit: 12 years 3 months ago by kiwi.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #8 by JAS
Replied by JAS on topic Re: Custom_js module welldid not work.
On my pages input GA code without GA id.

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #9 by JAS
Replied by JAS on topic Re: Custom_js module welldid not work.
WT 1.2.4 GA OK.
WT 1.2.5 GA not OK.
Progress be like each other so what's this in aid of.

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #10 by kiwi
Replied by kiwi on topic Re: Custom_js module welldid not work.
1.2.5 does NOT apply js in the same way as 1.2.4

Please answer my question:

Are you sure have visited administration> menus (Yes I DO mean menus) and "save"?

Please Log in or Create an account to join the conversation.

  • ToyGuy
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
More
12 years 3 months ago #11 by ToyGuy
Replied by ToyGuy on topic Re: Custom_js module welldid not work.
Nigel
YES -that "trick" of visiting the MENU admin page and saving did activate the JS module.
Thanks

Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Please Log in or Create an account to join the conversation.

  • heinrichderfuchs
  • Visitor
  • Visitor
12 years 3 months ago #12 by heinrichderfuchs
Replied by heinrichderfuchs on topic Re: Custom_js module welldid not work.
It works now with me, too. Sorry, but I thought I visited the page and changed the rights to for all visitors and therefore saved it also.
I did it again and now it works...

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #13 by JAS
Replied by JAS on topic Re: Custom_js module welldid not work.
Admin/Menu/Custom J.. x/Save GA ... and view-source code

<script type="text/javascript">
//<![CDATA[
jQuery.ajaxSetup({cache:true});
jQuery("#block_1").load("index.php?ctype=user&action=ajax&block_id=1");
jQuery("#block_5").load("index.php?ctype=user&action=ajax&block_id=5");
jQuery("#block_6").load("index.php?ctype=user&action=ajax&block_id=6");

//]]>
</script>
</body></html>

No view GA code, v.1.2.4 view GA code

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago - 12 years 3 months ago #14 by kiwi
Replied by kiwi on topic Re: Custom_js module welldid not work.
NO, not custom_js config. I said:

administration> menus then simply click Save.
I realise it is not obvious WHY you would need to do this. It is, for now, necessary though. We hope to fix this in the future. See this image:


EDIT: Apologies that this extra instruction was not included in the module's ReadMe file. That has now been corrected.
Attachments:
Last edit: 12 years 3 months ago by kiwi.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago - 12 years 3 months ago #15 by JAS
Replied by JAS on topic Re: Custom_js module welldid not work.
After examination function Custom JavaScript Version:1.2.5 I found out, do you GA function
only at enregistration on pages. After sign off from WT GA isn't functional and visitors not
registerd.


There has been any alternative how insert code GA to the file header.php?

Progressed observe the time according to instruction. Turned off I modulus, because did not work well.

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Last edit: 12 years 3 months ago by JAS.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}