PDA

View Full Version : Google Analytics trucking code does NOT work with Flynax script!



PGGO
March 26, 2012, 09:53 AM
I notice a problem that Flynax script does not support “Google Analytics” in version 4.1

The problem consists of the following:
When I copy and paste Google Analytics code into my Flynax classifieds software (between “head” section), I notice that there is no results coming from this trucking code. Then, I looked at HTML code in browser, and I saw that code I inserted does not show up in full. Flynax script had cut off my analytics code in half.



This is the sample code of Google Analytics that I have inserted for trucking purposes:

<! -- Google Analitycs trucking code START -- >

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XX-XXXXXX-X']);
_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>

<! -- Google Analitycs trucking code END -- >


Please someone give any advice.
Thanks

Vitor Reis
April 4, 2012, 09:14 PM
You need to add:

{literal}
<! -- Google Analitycs trucking code START -- >
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XX-XXXXXX-X']);
_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>
<! -- Google Analitycs trucking code END -- >
{/literal}

From here: http://www.flynax.com/forum/showthread.php?1-Google-Analytics-code-integration

PGGO
April 27, 2012, 03:17 AM
Thank you Vitor Reis,

Your suggestion is working just perfect!!!

Dmitry
May 4, 2012, 12:12 PM
Hi Guys,

Javascript code need to enter into {literal} tag.

{literal}
javascript code
{/literal}

Thanks.

Mike
April 24, 2013, 03:42 AM
For those who are looking how is better to add Google Analytics or other code:

We have plugin for convenient 3rd party codes management - it's <a href="http://www.flynax.com/plugins/verificationcode.html">Verification Code</a> plugin

Morgan Bohman
April 24, 2013, 04:09 AM
Nice ref Mike :rolleyes: