-
March 26, 2012, 09:53 AM
#1
Senior Member
Google Analytics trucking code does NOT work with Flynax script!
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
Last edited by PGGO; March 26, 2012 at 10:07 AM.
-
April 4, 2012, 09:14 PM
#2
Junior Member
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/showthre...de-integration
Last edited by Vitor Reis; April 4, 2012 at 09:25 PM.
-
April 27, 2012, 03:17 AM
#3
Senior Member
Thank you Vitor Reis,
Your suggestion is working just perfect!!!
-
Flynax Developer
Hi Guys,
Javascript code need to enter into {literal} tag.
{literal}
javascript code
{/literal}
Thanks.
-
April 24, 2013, 03:42 AM
#5
Guru
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
-
April 24, 2013, 04:09 AM
#6
Master
Nice ref Mike